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
apiEndpointId
value, run the List endpoints operation. -
Select the appropriate endpoint from the returned array and store its
apiEndpointId
value. -
If you don't already have a
versionNumber
value, run the List versions operation. -
Select the appropriate endpoint version from the returned array and store its
versionNumber
value. -
Build an ImportFile object, specifying the
importFileFormat
andimportFileSource
. Depending on theimportFileSource
, specify either theimportFileContent
orimportUrl
. -
POST the object to
/api-definitions/v2/endpoints/{apiEndPointId}/versions/{versionNumber}/file
.
A 200 response confirms success, and the response object reflects your modifications.