Patch a single OAS API by ID.
Update a Tyk OAS API.
With application/json, application/x-yaml or multipart/form-data, replace the
OpenAPI description and configure x-tyk-api-gateway from the query parameters,
as on import. A body containing x-tyk-api-gateway is rejected.
With application/merge-patch+json, apply an RFC 7396 JSON Merge Patch to the
unresolved definition a GET returns. null removes a key and arrays are replaced
whole. The result is validated and saved as a PUT would be. Send If-Match to make
the update conditional; without it, a patch that races another write is retried up
to five times.
Fragment references are patched whole: swap one with {"$ref": "fragment://<id>"},
detach it with {"$ref": null, ...} or remove it with null. Patching inside one
returns 409.
Authorizations
The Tyk Dashboard API Access Credentials
Headers
The ETag from a GET. If the definition has changed since, the PATCH returns 412. * matches any version.
Path Parameters
ID of the API you want to patch.
Query Parameters
Upstream URL for the API.
Listen path for the API.
Custom domain for the API.
Enable allowList middleware for all endpoints.
true
Enable validateRequest middleware for all endpoints having a request body with media type application/json.
true
Enable mockResponse middleware for all endpoints having responses configured.
true
Enable/disable the authentication mechanism in your Tyk Gateway for your OAS API.
true
Body
The content of the file should be the OpenAPI document in JSON or YAML format.
The body is of type object.