This section shows you how to update an endpoint from an API definition file by submitting an application/json request. If instead you'd like to submit a multipart/form-data request to update an endpoint, see Make a form request to edit an endpoint from an API definition file.
-
If you don't already have an
apiEndpointIdvalue, run the List endpoints operation. -
Select the appropriate endpoint from the returned array and store its
apiEndpointIdvalue. -
If you don't already have a
versionNumbervalue, run the List versions operation. -
Select the appropriate endpoint version from the returned array and store its
versionNumbervalue. -
Build an ImportFile object, specifying the
importFileFormatandimportFileSource. Depending on theimportFileSource, specify either theimportFileContentorimportUrl. -
POST the object to
/api-definitions/v2/endpoints/{apiEndPointId}/versions/{versionNumber}/file.
A 200 response confirms success, and the response object reflects your modifications.
