A valid request URL is required to generate request examples{
"budget": {
"id": "<string>",
"max_limit": 123,
"reset_duration": "<string>",
"last_reset": "2023-11-07T05:31:56Z",
"current_usage": 123,
"config_hash": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"calendar_aligned": false,
"override_amount": 123,
"override_cycles_remaining": 123,
"override_cycles_total": 123,
"override_anchor_reset": "2023-11-07T05:31:56Z",
"team_id": "<string>",
"virtual_key_id": "<string>",
"provider_config_id": 123
},
"effective_max_limit": 123
}{
"event_id": "<string>",
"type": "<string>",
"is_bifrost_error": true,
"status_code": 123,
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"event_id": "<string>"
},
"extra_fields": {
"model_requested": "<string>",
"request_type": "<string>"
}
}{
"event_id": "<string>",
"type": "<string>",
"is_bifrost_error": true,
"status_code": 123,
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"event_id": "<string>"
},
"extra_fields": {
"model_requested": "<string>",
"request_type": "<string>"
}
}Set a user's access-profile budget override
Sets or replaces the spending override on one budget of a single user’s copy of an access profile.
The override is additive — while it is active the budget is enforced against
max_limit + override_amount — and it leaves the budget’s base limit, current usage, and reset
schedule untouched. Only this user is affected; the access profile template and every other user
assigned to it keep their original limits.
Use mode: cycles with a cycles count to grant extra spend for a finite number of reset windows
(the current window counts as the first), or mode: forever to keep the override until it is deleted.
A finite grant is anchored to the profile’s reset window — calendar-aligned profiles anchor at the
calendar period start — so every node in a cluster derives the same number of remaining cycles.
The change is propagated cluster-wide and survives access-profile cloning and propagation.
Requires the AccessProfiles.Update permission. budget_id must be a budget on the user’s own copy
of the profile, not on the shared template.
A valid request URL is required to generate request examples{
"budget": {
"id": "<string>",
"max_limit": 123,
"reset_duration": "<string>",
"last_reset": "2023-11-07T05:31:56Z",
"current_usage": 123,
"config_hash": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"calendar_aligned": false,
"override_amount": 123,
"override_cycles_remaining": 123,
"override_cycles_total": 123,
"override_anchor_reset": "2023-11-07T05:31:56Z",
"team_id": "<string>",
"virtual_key_id": "<string>",
"provider_config_id": 123
},
"effective_max_limit": 123
}{
"event_id": "<string>",
"type": "<string>",
"is_bifrost_error": true,
"status_code": 123,
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"event_id": "<string>"
},
"extra_fields": {
"model_requested": "<string>",
"request_type": "<string>"
}
}{
"event_id": "<string>",
"type": "<string>",
"is_bifrost_error": true,
"status_code": 123,
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"event_id": "<string>"
},
"extra_fields": {
"model_requested": "<string>",
"request_type": "<string>"
}
}Authorizations
Management API authentication for /api/* endpoints. Use the Authorization header with Bearer <API key>.
Virtual keys, dashboard/user/session tokens, and x-api-key headers are not supported on management APIs.
Path Parameters
ID of the user whose access-profile budget is being overridden
ID of the access profile assigned to the user
ID of a budget on the user's copy of the access profile
Body
Replaces the active override on one budget. The override is additive: it does not change the
budget's max_limit, current_usage, or reset schedule. Sending this request against a budget
that already has an override replaces that override entirely.
Additional spend in dollars added on top of max_limit while the override is active. Must be greater than 0 and finite.
cycles keeps the override active for cycles reset windows starting with the current one.
forever keeps it active until it is removed with a DELETE.
cycles, forever Number of reset windows the override stays active for, counting the current window as the first.
Required and must be greater than 0 when mode is cycles; must be omitted or 0 when mode is forever.
x >= 1Was this page helpful?

