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

KeyDatatypeRequiredDescription
listenPathstringlistenPath for the API
upstreamURLstringupstreamURL for the API
customDomainstringcustom domain for the API
validateRequestbooleanenable validateRequest middleware for all endpoints having a request body with media type application/json
allowListstringenable allowList middleware for all endpoints

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{"message":"Api updated","status":"ok"}