create Api OAS
POST {{baseUrl}}/api/apis/oas?base_api_id=<string>&base_api_version_name=<string>&new_version_name=<string>&set_default=<boolean>
Create an API Definition in Tyk OAS API format.
Note that the response includes the newly created Tyk OAS API Definition containing the unique identifier for the API ( id
). You can provide a value for id
in the request body, otherwise Tyk will automatically generate a value.
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"}