PUT https://api.ap1.datadoghq.com/api/v1/integration/slack https://api.ap2.datadoghq.com/api/v1/integration/slack https://api.datadoghq.eu/api/v1/integration/slack https://api.ddog-gov.com/api/v1/integration/slack https://api.us2.ddog-gov.com/api/v1/integration/slack https://api.datadoghq.com/api/v1/integration/slack https://api.us3.datadoghq.com/api/v1/integration/slack https://api.us5.datadoghq.com/api/v1/integration/slack
Overview
Deprecated : This endpoint is deprecated.
This method completely rewrites your integration configuration by replacing
your current configuration with the new one sent to your Datadog organization.
Please ensure that all fields—including the Slack webhook URL—are valid
because an invalid URL will break your Slack notifications.
Request Body Data (required) Update an existing Datadog-Slack integration request body.
Expand All
An array of slack channel configurations.
Account to which the channel belongs to.
transfer_all_user_comments
To be notified for every comment on a graph, set it to true.
If set to False use the @slack-channel_name syntax for comments
to be posted to slack.
{
"channels" : [
{
"account" : "jane.doe" ,
"channel_name" : "#general" ,
"transfer_all_user_comments" : false
}
]
} Response Bad Request
Error response object.
Expand All
Array of errors returned by the API.
{
"errors" : [
"Bad Request"
]
} Authentication error
Error response object.
Expand All
Array of errors returned by the API.
{
"errors" : [
"Bad Request"
]
} Too many requests
Error response object.
Expand All
Array of errors returned by the API.
{
"errors" : [
"Bad Request"
]
} Code Example Copy
## default
#
# Curl command curl -X PUT "https://api.ap1.datadoghq.com "https://api.ap2.datadoghq.com "https://api.datadoghq.eu "https://api.ddog-gov.com "https://api.us2.ddog-gov.com "https://api.datadoghq.com "https://api.us3.datadoghq.com "https://api.us5.datadoghq.com /api/v1/integration/slack " \
-H "Content-Type: application/json" \
-H "DD-API-KEY: ${DD_API_KEY} " \
-H "DD-APPLICATION-KEY: ${DD_APP_KEY} " \
-d @- << EOF
{
"channels": [
{
"account": "Main_Account",
"channel_name": "#channel_name_main_account",
"transfer_all_user_comments": false
}
]
}
EOF