create Api OAS
POST {{baseUrl}}/tyk/apis/oas?base_api_id=<string>&base_api_version_name=<string>&new_version_name=<string>&set_default=<boolean>
Create API with OAS format A single Tyk node can have its API Definitions queried, deleted and updated remotely. This functionality enables you to remotely update your Tyk definitions without having to manage the files manually.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
base_api_id | string | The base API which the new version will be linked to. | |
base_api_version_name | string | The version name of the base API while creating the first version. This doesn't have to be sent for the next versions but if it is set, it will override base API version name. | |
new_version_name | string | The version name of the created version. | |
set_default | string | If true, the new version is set as default version. |
Request Body
{"value"=>"reference https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/schemas/v3.0/schema.json not found in the OpenAPI spec"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"action":"\u003cstring\u003e","key":"\u003cstring\u003e","key_hash":"\u003cstring\u003e","status":"\u003cstring\u003e"}