Update observability destination
/observability-destination/{id}
Path Parameters
Request Body
Replaces the whole stored config when provided (fields are not merged), so it must be a complete config for the destination type. For example, a Datadog update must include site even when only tags change; a partial config is rejected with a 400.
Secret bag stored as a single encrypted JSON blob. Replaces the stored secrets when provided, and must include the secrets the destination type requires. Never returned by the API.
Changing the type requires config and secrets for the new type in the same request.
datadogsplunk_hecsentinelotlp
Response Body
Non-secret destination configuration. Datadog: site, tags. Splunk HEC: hec_url, index, source, sourcetype. Microsoft Sentinel: tenant_id, client_id, dce_endpoint, dcr_immutable_id, stream_name, cloud. OTLP: endpoint, resource_attributes. All types accept a log_types filter.
The environment whose logs are forwarded.
The ID of the observability destination.
Whether forwarding is enabled.
Human-readable destination name.
Destination type.
datadogsplunk_hecsentinelotlp
curl -X PATCH 'https://api.truto.one/observability-destination/{id}' \
-H 'Authorization: Bearer <your_api_token>' \
-H 'Content-Type: application/json' \
-d '{
"type": "datadog",
"name": "your_name",
"is_active": true,
"config": {},
"secrets": {}
}'const body = {
"type": "datadog",
"name": "your_name",
"is_active": true,
"config": {},
"secrets": {}
};
const response = await fetch('https://api.truto.one/observability-destination/{id}', {
method: 'PATCH',
headers: {
'Authorization': 'Bearer <your_api_token>',
'Content-Type': 'application/json',
},
body: JSON.stringify(body),
});
const data = await response.json();
console.log(data);import requests
url = "https://api.truto.one/observability-destination/{id}"
headers = {
"Authorization": "Bearer <your_api_token>",
"Content-Type": "application/json",
}
params = {
}
payload = {
"type": "datadog",
"name": "your_name",
"is_active": True,
"config": {},
"secrets": {}
}
response = requests.patch(url, headers=headers, params=params, json=payload)
print(response.json())