update_virtual_key
Modify a virtual key's name, secret, note, or usage limits without recreating it. Changes apply immediately to downstream prompts and configs using the same slug.
Instructions
Update a virtual key's name, secret, note, or limits. Rotating the key takes effect immediately, and limit changes apply to downstream prompts and configs using this slug. Returns success when Portkey accepts the update.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | New provider API key value | |
| name | No | New display name for the key | |
| note | No | New note or description | |
| slug | Yes | The slug of the virtual key to update | |
| 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) | |
| secret_mappings | No | Replacement Secret Reference mappings | |
| deployment_configurations | No | Replacement Azure deployment configurations |
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 |