Turn an API on or off
specway_set_api_activeTurns an API on or off in the docs. Off hides the whole API from readers and keeps everything (pages, endpoints, settings), and an API that is off does not count toward the plan's limit on APIs. On shows it again. Turning one on is refused when the organization's plan limit on APIs turned on is already reached; nothing changes then. Setting the state it is already in changes nothing.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"api_id": "<api_id>",
"active": "<active>"
},
"name": "specway_set_api_active"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| active | Yes | true shows the API to readers, false hides it. | |
| api_id | Yes | An api_id from specway_list_apis. Opaque. |