Update a domain API key
update_domain_api_keyModify an existing domain API key's name, active status, or expiry date in place. Preview changes first, then confirm to apply—the key value itself stays unchanged.
Instructions
Updates a domain API key's name, active state, and/or expiry in place — never changes the key value itself (use rotate_domain_api_key for that). Only the fields you pass are changed. Requires confirm=true — first call WITHOUT confirm to preview the exact changes, then again with confirm:true.
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": {
"domainId": "<domainId>",
"keyId": "<keyId>"
},
"name": "update_domain_api_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| keyId | Yes | The key's id — from list_domain_api_keys. | |
| confirm | No | Must be true to apply. Omit/false returns a preview only. | |
| domainId | Yes | The domain's id — from list_domains. | |
| isActive | No | Deactivate (false) or reactivate (true) the key without deleting it. | |
| expiresAt | No | ISO 8601 expiry. |