Replace a gateway
update_gatewayReplace a gateway
Replaces the whole config: send the config from the get_gateway tool with your changes. Fields left out take their defaults and the same checks apply as on create. A body without a name keeps this one; a different name renames the gateway (a name already in use is 409 conflict) and its keys follow. Keys stay attached either way. Requests follow the new config within about a minute: the router keeps a key's gateway and the account's gateway list for about 60 seconds, so until then a request may still run through the old config.
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": {
"name": "<name>",
"body": "<body>"
},
"name": "update_gateway"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | A gateway's config, as the console stores it and the router reads it (snake_case, unlike the rest of this API). Fields left out take their defaults; unknown fields are dropped. | |
| name | Yes | The gateway's name. |