Post to Azure
PUT {{baseManagement}}/subscriptions/{{subscriptionId}}/resourceGroups/{{resourceGroupName}}/providers/Microsoft.ApiManagement/service/{{serviceName}}/apis/{{apiId}}?api-version=2020-06-01-preview
Uploads the API schema to API management service - creates an API if an API hasn't been defined in Azure, or updates the API if it has already been defined in Azure.
This request uploads an API schema of type format
(stored in schemaContent
) with name displayName
to Azure, given the subscriptionId
, resourceGroupName
, serviceName
, apiId
and path
. Authentication done via bearerTokenAPI
.
This request also uses baseManagement
as part of the request URL to upload the API schema. The baseAuth allows the switching of this request from a regular PUT request (which would use https://management.azure.com) to an example generated through the Mock Server (which would use the Mock Server URL).
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
api-version | string |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
x-mock-response-name | string |