Skip to main content
PUT
/
api
/
governance
/
virtual-keys
/
{vk_id}
Update Virtual Key
curl --request PUT \
  --url http://localhost:8080/api/governance/virtual-keys/{vk_id} \
  --header 'Content-Type: application/json' \
  --data '{
  "description": "<string>",
  "provider_configs": [
    {
      "id": 123,
      "provider": "<string>",
      "weight": 123,
      "allowed_models": [
        "<string>"
      ]
    }
  ],
  "mcp_configs": [
    {
      "id": 123,
      "mcp_client_name": "<string>",
      "tools_to_execute": [
        "<string>"
      ]
    }
  ],
  "team_id": "<string>",
  "customer_id": "<string>",
  "budget": {
    "max_limit": 123,
    "reset_duration": "<string>"
  },
  "rate_limit": {
    "token_max_limit": 123,
    "token_reset_duration": "<string>",
    "request_max_limit": 123,
    "request_reset_duration": "<string>"
  },
  "key_ids": [
    "<string>"
  ],
  "is_active": true
}'

Path Parameters

vk_id
string
required

Body

application/json
description
string
provider_configs
object[]
mcp_configs
object[]
team_id
string
customer_id
string
budget
object
rate_limit
object
key_ids
string[]
is_active
boolean

Response

200

Virtual key updated successfully