Skip to main content
PATCH
/
observability
/
destinations
/
{id}
Update an observability destination
curl --request PATCH \
  --url https://openrouter.ai/api/v1/observability/destinations/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "enabled": false,
  "name": "Updated Langfuse"
}
'
{
  "data": {
    "api_key_hashes": null,
    "config": {
      "baseUrl": "https://us.cloud.langfuse.com",
      "publicKey": "pk-l...EfGh",
      "secretKey": "sk-l...AbCd"
    },
    "created_at": "2025-08-24T10:30:00Z",
    "enabled": true,
    "filter_rules": null,
    "id": "99999999-aaaa-bbbb-cccc-dddddddddddd",
    "name": "Production Langfuse",
    "privacy_mode": false,
    "sampling_rate": 1,
    "type": "langfuse",
    "updated_at": "2025-08-24T15:45:00Z",
    "workspace_id": "550e8400-e29b-41d4-a716-446655440000"
  }
}

Authorizations

Authorization
string
header
required

API key as bearer token in Authorization header

Path Parameters

id
string<uuid>
required

The destination ID (UUID).

Example:

"99999999-aaaa-bbbb-cccc-dddddddddddd"

Body

application/json
api_key_hashes
string[] | null

Optional allowlist of OpenRouter API key hashes. null clears the filter (all keys). Omitting leaves the current value. Must contain at least one hash if provided.

Minimum array length: 1
Example:

null

config
object

Provider-specific configuration fields to update. Masked values are ignored; unset fields keep their current value.

Example:
{
"baseUrl": "https://us.cloud.langfuse.com",
"publicKey": "pk-l...EfGh",
"secretKey": "sk-l...AbCd"
}
enabled
boolean

Whether the destination is enabled.

Example:

true

filter_rules
object | null

Optional structured filter rules. null clears the rules. Omitting keeps the current value.

Example:

null

name
string

Human-readable name for the destination.

Example:

"Production Langfuse"

privacy_mode
boolean

When true, request/response bodies are not forwarded — only metadata.

Example:

false

sampling_rate
number<double>

Sampling rate between 0.0001 and 1 (1 = 100%).

Example:

1

Response

Destination updated successfully

data
object
required

The updated observability destination.

Example:
{
"api_key_hashes": null,
"config": {
"baseUrl": "https://us.cloud.langfuse.com",
"publicKey": "pk-l...EfGh",
"secretKey": "sk-l...AbCd"
},
"created_at": "2025-08-24T10:30:00Z",
"enabled": true,
"filter_rules": null,
"id": "99999999-aaaa-bbbb-cccc-dddddddddddd",
"name": "Production Langfuse",
"privacy_mode": false,
"sampling_rate": 1,
"type": "langfuse",
"updated_at": "2025-08-24T15:45:00Z",
"workspace_id": "550e8400-e29b-41d4-a716-446655440000"
}