update_provider
Update provider metadata, usage limits, rate limits, or expiration dates, and reset accumulated usage counters when quota tracking needs a fresh start.
Instructions
Update a provider's metadata, limits, or expiration. reset_usage clears accumulated usage counters immediately, so use it only when you intend to reset quota tracking. Returns the updated provider id and slug. 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_provider"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | New display name for the provider | |
| note | No | New note or description for the provider | |
| slug | Yes | The slug of the provider to update | |
| expires_at | No | New expiration date in ISO 8601 format | |
| reset_usage | No | Set to true to reset accumulated usage metrics | |
| credit_limit | No | New credit limit for usage | |
| workspace_id | No | Workspace ID - required when using organization admin keys | |
| periodic_reset | No | Reset period: 'monthly' or 'weekly'. If omitted, preserves the existing cadence, including custom reset days; defaults to 'monthly' when no limits exist. | |
| alert_threshold | No | New alert threshold percentage (0-100) | |
| rate_limit_unit | No | Rate limit unit: 'rpm' (requests per minute), 'rph' (requests per hour), or 'rpd' (requests per day). Must be provided together with rate_limit_value. | |
| rate_limit_value | No | New rate limit value. Must be provided together with rate_limit_unit. | |
| usage_limit_type | No | Usage limit type: 'cost' or 'tokens'. If omitted, preserves the existing type; defaults to 'cost' when no limits exist. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | Call succeeded | |
| data | No | Success payload | |
| error | No | Failure details |