update_api_key
Update an existing API key's name, description, scopes, defaults, or limits without revoking it. Changes apply immediately, keeping the secret unchanged.
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 | |
| rate_limits | No | Replacement request or token rate limits, or null to clear | |
| reset_usage | No | Set to a nonnegative acknowledgement value to reset usage | |
| 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) | |
| rotation_policy | No | Replacement rotation policy, or null to disable it | |
| default_metadata | No | New default metadata key-value pairs | |
| default_config_id | No | New default configuration ID | |
| default_allow_config_override | No | Whether callers may override the key's default config |
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 |