API Package Specification
Update API package current specification
Updates the current specification of an API package.
put/v3/api-packages/{packageId}/current-specification
Request body
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)
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"
}