This section shows you how to update an endpoint from an API definition file by submitting a multipart/form-data request (see RFC 2388 for details). If instead you'd like to submit an application/json request to update an endpoint, see Make a JSON 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. -
Prepare an API definition file and set the
importFileFormattoramlorswagger. -
Assign the filename as the
importFile. -
Optionally embed the API definition within a ZIP archive, in which case reset the definition filename as
rootand the name of the archive asimportFile. -
Optionally make the definition or archive file available on the web at an
importUrl. -
Prepare a
multipart/form-datarequest specifying the fields listed in Parameters. Specify either animportFileorimportUrl, and make sure to specify therootif you're uploading a ZIP archive. -
Make a form data POST request to
/api-definitions/v2/endpoints/{apiEndPointId}/versions/{versionNumber}/file?force=true.
A 200 response confirms success, and the response object reflects your modifications.
