PATCH https://api.ap1.datadoghq.com/api/v2/domain_allowlist https://api.datadoghq.eu/api/v2/domain_allowlist https://api.ddog-gov.com/api/v2/domain_allowlist https://api.datadoghq.com/api/v2/domain_allowlist https://api.us3.datadoghq.com/api/v2/domain_allowlist https://api.us5.datadoghq.com/api/v2/domain_allowlist
Overview Update the domain allowlist for an organization.
This endpoint requires the org_management
permission.
OAuth apps require the org_management
authorization scope to access this endpoint.
Request Body Data (required)
Expand All
The email domain allowlist for an org.
The details of the email domain allowlist.
The list of domains in the email domain allowlist.
Whether the email domain allowlist is enabled for the org.
The unique identifier of the org.
Email domain allowlist allowlist type.
Allowed enum values: domain_allowlist
default: domain_allowlist
{
"data" : {
"attributes" : {
"domains" : [
"@static-test-domain.test"
],
"enabled" : false
},
"type" : "domain_allowlist"
}
}
Response OK
Response containing information about the email domain allowlist.
Expand All
The email domain allowlist response for an org.
The details of the email domain allowlist.
The list of domains in the email domain allowlist.
Whether the email domain allowlist is enabled for the org.
The unique identifier of the org.
Email domain allowlist allowlist type.
Allowed enum values: domain_allowlist
default: domain_allowlist
{
"data" : {
"attributes" : {
"domains" : [],
"enabled" : false
},
"id" : "string" ,
"type" : "domain_allowlist"
}
}
Too many requests
{
"errors" : [
"Bad Request"
]
}
Code Example Copy
# Curl command curl -X PATCH "https://api.ap1.datadoghq.com "https://api.datadoghq.eu "https://api.ddog-gov.com "https://api.datadoghq.com "https://api.us3.datadoghq.com "https://api.us5.datadoghq.com /api/v2/domain_allowlist " \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "DD-API-KEY: ${DD_API_KEY} " \
-H "DD-APPLICATION-KEY: ${DD_APP_KEY} " \
-d @- << EOF
{
"data": {
"attributes": {
"domains": [
"@static-test-domain.test"
],
"enabled": false
},
"type": "domain_allowlist"
}
}
EOF