Update API Specification
Changed onUpdates the specification (OpenAPI or AsyncAPI) of an API. Note: This endpoint is deprecated and will be removed: use /versions instead.
Request
- Base URLhttps://global.api.konghq.com
- Auth
- HTTP bearer
- or HTTP bearer
- or HTTP bearer
- or HTTP bearer
Path parameters
The UUID API identifier
The API specification identifier
Request body
The API specification identifier.
The raw content of your API specification, in json or yaml format (OpenAPI or AsyncAPI).
The errors that occurred while parsing the API specification.
The type of specification being stored. This allows us to render the specification correctly.
An ISO-8601 timestamp representation of entity creation date.
An ISO-8601 timestamp representation of entity update date.
Example request
{
"id": "7710d5c4-d902-410b-992f-18b814155b53",
"content": "{\"openapi\":\"3.0.3\",\"info\":{\"title\":\"Example API\",\"version\":\"1.0.0\"},\"paths\":{\"/example\":{\"get\":{\"summary\":\"Example endpoint\",\"responses\":{\"200\":{\"description\":\"Successful response\"}}}}}}",
"type": "oas3",
"created_at": "2022-11-04T20:10:06.927Z",
"updated_at": "2022-11-04T20:10:06.927Z"
}Response
API specification (OpenAPI or AsyncAPI)
The API specification identifier.
The raw content of your API specification, in json or yaml format (OpenAPI or AsyncAPI).
The errors that occurred while parsing the API specification.
The type of specification being stored. This allows us to render the specification correctly.
An ISO-8601 timestamp representation of entity creation date.
An ISO-8601 timestamp representation of entity update date.
Example response
{
"id": "7710d5c4-d902-410b-992f-18b814155b53",
"content": "{\"openapi\":\"3.0.3\",\"info\":{\"title\":\"Example API\",\"version\":\"1.0.0\"},\"paths\":{\"/example\":{\"get\":{\"summary\":\"Example endpoint\",\"responses\":{\"200\":{\"description\":\"Successful response\"}}}}}}",
"type": "oas3",
"created_at": "2022-11-04T20:10:06.927Z",
"updated_at": "2022-11-04T20:10:06.927Z"
}Changes
- breaking
the response's body type changed from no type to
objectfor status - breaking
the response's body type changed from no type to
objectfor status - breaking
the response's body type changed from no type to
objectfor status
40 more changes in this revision
- breaking