PATCH https://api.ap1.datadoghq.com/api/v2/integration/salesforce-incidents/incident-templates/{incident_template_id} https://api.ap2.datadoghq.com/api/v2/integration/salesforce-incidents/incident-templates/{incident_template_id} https://api.datadoghq.eu/api/v2/integration/salesforce-incidents/incident-templates/{incident_template_id} https://api.ddog-gov.com/api/v2/integration/salesforce-incidents/incident-templates/{incident_template_id} https://api.us2.ddog-gov.com/api/v2/integration/salesforce-incidents/incident-templates/{incident_template_id} https://api.datadoghq.com/api/v2/integration/salesforce-incidents/incident-templates/{incident_template_id} https://api.us3.datadoghq.com/api/v2/integration/salesforce-incidents/incident-templates/{incident_template_id} https://api.us5.datadoghq.com/api/v2/integration/salesforce-incidents/incident-templates/{incident_template_id}
Overview Update a single Salesforce incident template in your organization.
This endpoint requires the manage_integrations permission.
Arguments Path Parameters incident_template_id [required ]
The ID of the Salesforce incident template.
Request Body Data (required) Salesforce incident template payload.
Expand All
Salesforce incident template data for an update request.
Salesforce incident template attributes for an update request.
Long-form description body for Salesforce incidents created from this template.
Human-readable name for this incident template.
The Salesforce user ID that owns incidents created from this template.
Priority of the Salesforce incident created from this template.
Allowed enum values: Critical,High,Moderate,Low
The Datadog-assigned ID of the Salesforce organization this template belongs to.
Subject line for Salesforce incidents created from this template.
The ID of the Salesforce incident template being updated. Must match the path parameter.
Salesforce incident template resource type.
Allowed enum values: salesforce-incidents-incident-template
default: salesforce-incidents-incident-template
{
"data" : {
"attributes" : {
"description" : "An incident was detected by Datadog monitors." ,
"name" : "production-outage" ,
"owner_id" : "005000000000000" ,
"priority" : "High" ,
"salesforce_org_id" : "596da4af-0563-4097-90ff-07230c3f9db3" ,
"subject" : "Datadog Incident: Production Outage"
},
"id" : "596da4af-0563-4097-90ff-07230c3f9db3" ,
"type" : "salesforce-incidents-incident-template"
}
} Response OK
Response containing a Salesforce incident template.
Expand All
Salesforce incident template data from a response.
Salesforce incident template attributes returned by the API.
Long-form description body for Salesforce incidents created from this template.
Human-readable name for this incident template.
The Salesforce user ID that owns incidents created from this template.
Priority of the Salesforce incident created from this template.
Allowed enum values: Critical,High,Moderate,Low
The Datadog-assigned ID of the Salesforce organization this template belongs to.
Subject line for Salesforce incidents created from this template.
The ID of the Salesforce incident template.
Salesforce incident template resource type.
Allowed enum values: salesforce-incidents-incident-template
default: salesforce-incidents-incident-template
{
"data" : {
"attributes" : {
"description" : "An incident was detected by Datadog monitors." ,
"name" : "production-outage" ,
"owner_id" : "005000000000000" ,
"priority" : "High" ,
"salesforce_org_id" : "596da4af-0563-4097-90ff-07230c3f9db3" ,
"subject" : "Datadog Incident: Production Outage"
},
"id" : "596da4af-0563-4097-90ff-07230c3f9db3" ,
"type" : "salesforce-incidents-incident-template"
}
} Bad Request
{
"errors" : [
"Bad Request"
]
} Forbidden
{
"errors" : [
"Bad Request"
]
} Not Found
{
"errors" : [
"Bad Request"
]
} Conflict
{
"errors" : [
"Bad Request"
]
} Too many requests
{
"errors" : [
"Bad Request"
]
} Code Example Copy
## default
#
# Path parameters export incident_template_id = "CHANGE_ME" # Curl command curl -X PATCH "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/v2/integration/salesforce-incidents/incident-templates/${incident_template_id} " \
-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": {
"name": "production-outage-renamed"
},
"id": "596da4af-0563-4097-90ff-07230c3f9db3",
"type": "salesforce-incidents-incident-template"
}
}
EOF