update_api_key
Update an existing API key's name, description, scopes, defaults, or limits. Changes take effect immediately without rotating the secret.
Instructions
Update an API key's name, description, scopes, defaults, or limits, unlike delete_api_key which revokes it or create_api_key which issues a new one. Changes take effect immediately for downstream callers, type and sub-type stay fixed after creation, and the call returns success without rotating the secret.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The UUID of the API key to update | |
| name | No | New display name for the key | |
| scopes | No | New permission scopes for the key | |
| expires_at | No | New expiration date in ISO 8601 format, or null to remove expiration | |
| description | No | New description for the key | |
| alert_emails | No | New email addresses for alerts | |
| credit_limit | No | New credit limit for usage | |
| rate_limit_rpm | No | New rate limit in requests per minute | |
| alert_threshold | No | New alert threshold percentage (0-100) | |
| default_metadata | No | New default metadata key-value pairs | |
| default_config_id | No | New default configuration ID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | Whether the tool call succeeded and returned structured data | |
| data | No | Structured success payload when ok is true | |
| error | No | Structured error payload when ok is false |