API
Update API
Updates an API.
patch/v3/apis/{apiId}
Query parameters
force'true' | 'false'
If true, allows operations to be removed from the current version when using access control enforcement. If false, operations removal will be rejected with a 409 error. Omitting the value means true.
Request body
Example request
{
"id": "9f5061ce-78f6-4452-9108-ad7c02821fd5",
"name": "MyAPI",
"current_version_summary": {
"id": "7710d5c4-d902-410b-992f-18b814155b53",
"spec": {
"type": "oas3",
"provider": {
"config": {
"url": "https://api.petstore.com/v3/openapi.json"
}
}
},
"created_at": "2022-11-04T20:10:06.927Z",
"updated_at": "2022-11-04T20:10:06.927Z"
},
"slug": "my-api-v1",
"api_spec_ids": [
"123e4567-e89b-12d3-a456-426614174000"
],
"portals": [
{
"id": "25a2624c-49fc-4764-99e1-224ed819f200",
"name": "My Portal",
"display_name": "My Portal"
}
],
"labels": {
"env": "test"
},
"attributes": {
"env": [
"production"
],
"domains": [
"web",
"mobile"
]
},
"created_at": "2022-11-04T20:10:06.927Z",
"updated_at": "2022-11-04T20:10:06.927Z"
}Response
API
Example response
{
"id": "9f5061ce-78f6-4452-9108-ad7c02821fd5",
"name": "MyAPI",
"current_version_summary": {
"id": "7710d5c4-d902-410b-992f-18b814155b53",
"spec": {
"type": "oas3",
"provider": {
"config": {
"url": "https://api.petstore.com/v3/openapi.json"
}
}
},
"created_at": "2022-11-04T20:10:06.927Z",
"updated_at": "2022-11-04T20:10:06.927Z"
},
"slug": "my-api-v1",
"api_spec_ids": [
"123e4567-e89b-12d3-a456-426614174000"
],
"portals": [
{
"id": "25a2624c-49fc-4764-99e1-224ed819f200",
"name": "My Portal",
"display_name": "My Portal"
}
],
"labels": {
"env": "test"
},
"attributes": {
"env": [
"production"
],
"domains": [
"web",
"mobile"
]
},
"created_at": "2022-11-04T20:10:06.927Z",
"updated_at": "2022-11-04T20:10:06.927Z",
"images": {
"icon": {
"uri": "/apis/ebbac5b0-ac89-45c3-9d2e-c4542c657e79/images/icon/raw"
}
}
}