Update a custom destination
PATCH {{baseUrl}}/api/v2/logs/config/custom-destinations/:custom_destination_id
Update the given fields of a specific custom destination in your organization.
Request Body
{"data"=>{"type"=>"custom_destination", "id"=>"be5d7a69-d0c8-4d4d-8ee8-bba292d98139", "attributes"=>{"enabled"=>true, "forward_tags"=>true, "forward_tags_restriction_list"=>["datacenter", "host"], "forward_tags_restriction_list_type"=>"ALLOW_LIST", "forwarder_destination"=>{"type"=>"http", "endpoint"=>"https://example.com", "auth"=>{"type"=>"basic", "username"=>"datadog-custom-destination-username", "password"=>"datadog-custom-destination-password"}}, "name"=>"Nginx logs", "query"=>"source:nginx"}}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"data":{"attributes":{"enabled":true,"forward_tags":true,"forward_tags_restriction_list":["datacenter","host"],"forward_tags_restriction_list_type":"ALLOW_LIST","forwarder_destination":{"type":"http","endpoint":"https://example.com","auth":{"type":"basic"}},"name":"Nginx logs","query":"source:nginx"},"id":"be5d7a69-d0c8-4d4d-8ee8-bba292d98139","type":"custom_destination"}}