For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
ModelsChatRankingsDocs
DocsAPI ReferenceClient SDKsAgent SDKCookbookChangelog
DocsAPI ReferenceClient SDKsAgent SDKCookbookChangelog
  • API Guides
    • Overview
    • Streaming
    • Embeddings
    • Limits
    • Authentication
    • Parameters
    • Errors and Debugging
  • API Reference
      • GETList observability destinations
      • POSTCreate an observability destination
      • GETGet an observability destination
      • DELDelete an observability destination
      • PATCHUpdate an observability destination
LogoLogo
ModelsChatRankingsDocs
API ReferenceObservability

Update an observability destination

PATCH
https://openrouter.ai/api/v1/observability/destinations/:id
PATCH
/api/v1/observability/destinations/:id
$curl -X PATCH https://openrouter.ai/api/v1/observability/destinations/99999999-aaaa-bbbb-cccc-dddddddddddd \
> -H "Authorization: Bearer <token>" \
> -H "Content-Type: application/json" \
> -d '{
> "enabled": false,
> "name": "Updated Langfuse"
>}'
1{
2 "data": {
3 "type": "langfuse",
4 "api_key_hashes": null,
5 "config": {
6 "publicKey": "pk-l...EfGh",
7 "secretKey": "sk-l...AbCd",
8 "baseUrl": "https://us.cloud.langfuse.com"
9 },
10 "created_at": "2025-08-24T10:30:00Z",
11 "enabled": true,
12 "filter_rules": null,
13 "id": "99999999-aaaa-bbbb-cccc-dddddddddddd",
14 "name": "Production Langfuse",
15 "privacy_mode": false,
16 "sampling_rate": 1,
17 "updated_at": "2025-08-24T15:45:00Z",
18 "workspace_id": "550e8400-e29b-41d4-a716-446655440000"
19 }
20}

Update an existing observability destination. Only the fields provided in the request body are updated. Management key required.

Was this page helpful?
Previous

List organization members

Next
Built with

Authentication

AuthorizationBearer
API key as bearer token in Authorization header

Path parameters

idstringRequiredformat: "uuid"

The destination ID (UUID).

Request

This endpoint expects an object.
api_key_hasheslist of strings or nullOptional

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.

configmap from strings to anyOptional

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

enabledbooleanOptional
Whether the destination is enabled.
filter_rulesobjectOptional

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

namestringOptional

Human-readable name for the destination.

privacy_modebooleanOptional

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

sampling_ratedoubleOptional

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

Response

Destination updated successfully
dataobject
The updated observability destination.

Errors

400
Bad Request Error
401
Unauthorized Error
404
Not Found Error
409
Conflict Error
500
Internal Server Error