Skip to main content
PATCH
Update virtual key

Authorizations

X-Auth-Token
string
header
required

Project API key for sending traces and accessing project-scoped resources. Format: sk-lw-... (no underscore). Obtain one by creating a project via the Admin API or the LangWatch UI.

Path Parameters

id
string
required
Minimum string length: 1

Body

application/json
name
string
Required string length: 1 - 128
description
string | null
scopes
object[]
Minimum array length: 1
trace_project_id
string | null
routing_policy_id
string | null
routing_mode
enum<string>
Available options:
none,
fallback_all,
policy
expires_at
unknown
budget
object | null
config
object
external_id
string | null
Required string length: 1 - 128
metadata
object

Response

Success

virtual_key
object
required
Last modified on May 19, 2026