Skip to main content
PUT
Error

Authorizations

Authorization
string
header
required

Management API authentication for /api/* endpoints. Use the Authorization header with Bearer <token>, where <token> is one of:

  • a Bifrost management API key,
  • a dashboard session token issued by POST /api/session/login,
  • base64 of <admin-username>:<admin-password> (legacy equivalent of BasicAuth).

Virtual keys (sk-bf-*) and the x-api-key header are not accepted on management APIs - the sole exception is GET /api/governance/virtual-keys/quota, which is virtual-key-only.

Path Parameters

vk_id
string
required

Virtual key ID

Body

application/json

Update virtual key request

name
string
description
string
provider_configs
object[]
mcp_configs
object[]
team_id
string
customer_id
string
budgets
object[]

Budget quotas assigned directly to this virtual key. Replaces all direct virtual-key budgets when provided.

rate_limit
object

Update rate limit request

is_active
boolean
calendar_aligned
boolean
reset_budget_usage
boolean

When true, zeroes current usage on the budgets reconciled by this update. The reset window is left alone: last_reset only ever advances, and never as a side effect of a configuration write, so the current window keeps its existing start and end.

expires_at
string

RFC3339 timestamp to set a new expiry (must be in the future), empty string to clear an existing expiry, omitted to leave it unchanged.

Response

Virtual key updated successfully

Virtual key operation response

message
string
required
virtual_key
object
required

Virtual key configuration