Patch a single OAS API by ID
PATCH {{baseUrl}}/api/apis/oas/:id?listenPath=/listen-path&upstreamURL=https://upstream.org/endpoint&customDomain=custom-domain.org&validateRequest=false&allowList=<string>
Update API with OAS format. You can use this endpoint to update OAS part of the tyk API definition. This endpoint allows you to configure tyk OAS extension based on query params provided(similar to import)
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
listenPath | string | listenPath for the API | |
upstreamURL | string | upstreamURL for the API | |
customDomain | string | custom domain for the API | |
validateRequest | boolean | enable validateRequest middleware for all endpoints having a request body with media type application/json | |
allowList | string | enable allowList middleware for all endpoints |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string |
RESPONSES
status: OK
{"message":"Api updated","status":"ok"}