update_api_key
Update an 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 | |
| description | No | New description for the key | |
| scopes | No | New permission scopes for the key | |
| credit_limit | No | New credit limit for usage | |
| alert_threshold | No | New alert threshold percentage (0-100) | |
| rate_limit_rpm | No | New rate limit in requests per minute | |
| default_config_id | No | New default configuration ID | |
| default_metadata | No | New default metadata key-value pairs | |
| alert_emails | No | New email addresses for alerts | |
| expires_at | No | New expiration date in ISO 8601 format, or null to remove expiration |
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 |