Update a logging destination
/observability-destination/{id}
`config` is shallow-MERGED over the stored config, so you may send just the keys you are changing. **`secrets`, in contrast, REPLACES the stored bag entirely** — send every credential the provider needs, or omit `secrets` to leave the existing ones alone. `type` cannot be changed. Requires `logging:manage`.
Path Parameters
Logging destination id (ldst_…).
Request Body
Non-secret provider settings.
Which slices of the audit trail to forward: tool_call = MCP/tool executions, auth = membership, role, invite and credential events, admin = everything else.
tool_callauthadmin
Datadog site.
us1us3us5euap1
Write-only credentials, stored encrypted and never returned. Sending secrets REPLACES the whole stored bag, so include every key the provider needs, not just the one you are changing.
Datadog API key — required for datadog.
Sentinel shared key.
Splunk HEC token.
Response Body
Non-secret provider settings.
Which slices of the audit trail to forward: tool_call = MCP/tool executions, auth = membership, role, invite and credential events, admin = everything else.
tool_callauthadmin
Datadog site.
us1us3us5euap1
Logging destination id (ldst_…).
Paused destinations keep their config but forward nothing.
okfailednull
Immutable after creation — to switch providers, create a new destination.
datadogsplunk_hecsentinel
curl -X PATCH 'https://api.elaichi.ai/observability-destination/<id>' \
-H 'Authorization: Bearer $ELAICHI_API_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"name":"your_name","is_active":true,"config":{},"secrets":{}}'const body = {
"name": "your_name",
"is_active": true,
"config": {},
"secrets": {}
};
const response = await fetch('https://api.elaichi.ai/observability-destination/<id>', {
method: 'PATCH',
headers: {
'Authorization': 'Bearer ' + process.env.ELAICHI_API_TOKEN,
'Content-Type': 'application/json',
},
body: JSON.stringify(body),
});
const data = await response.json();
console.log(data);import os
import requests
url = "https://api.elaichi.ai/observability-destination/<id>"
headers = {
"Authorization": f"Bearer {os.environ['ELAICHI_API_TOKEN']}",
"Content-Type": "application/json",
}
payload = {
"name": "your_name",
"is_active": True,
"config": {},
"secrets": {}
}
response = requests.patch(url, headers=headers, json=payload)
print(response.json())