update_virtual_key
Modify a Portkey virtual key's name, secret, note, or usage limits; key rotation applies immediately and limit changes affect downstream prompts and configs.
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. Limit updates read the current limits and write them back, and Portkey has no conditional writes, so concurrent limit updates to the same resource can overwrite each other. Serialize them.
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": {
"slug": "<slug>"
},
"name": "update_virtual_key"
}
}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 | Call succeeded | |
| data | No | Success payload | |
| error | No | Failure details |