Incidents
Create an incident ServiceNow record
Create a ServiceNow record for an incident.
post/api/v2/incidents/{incident_id}/servicenow-records
Request
- Base URLhttps://api.datadoghq.com
- Auth
- API key in header DD-API-KEY and API key in header DD-APPLICATION-KEY
- or OAuth 2Authorization code/oauth2/v1/authorizeToken URL/oauth2/v1/tokenScopesincident_write
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
incident_idstring required
The UUID of the incident.
Request body
Example request
{
"data": {
"attributes": {
"assignment_group": "IT Support",
"configuration_item_mapping": "my-service",
"instance_name": "my-instance",
"record_id": "abc123def456"
},
"type": "incident_servicenow_record_prompt"
}
}Response
Created
Example response
{
"data": {
"attributes": {
"incident_id": "00000000-aaaa-0000-0000-000000000000",
"integration_type": 1,
"metadata": {
"channels": []
}
},
"id": "00000000-0000-0000-1234-000000000000",
"relationships": {
"created_by_user": {
"data": {
"id": "00000000-0000-0000-2345-000000000000",
"type": "users"
}
},
"last_modified_by_user": {
"data": {
"id": "00000000-0000-0000-2345-000000000000",
"type": "users"
}
}
},
"type": "incident_integrations"
},
"included": [
{
"relationships": {
"org": {
"data": {
"id": "00000000-0000-beef-0000-000000000000",
"type": "orgs"
}
},
"other_orgs": {
"data": []
},
"other_users": {
"data": []
},
"roles": {
"data": [
{
"id": "3653d3c6-0c75-11ea-ad28-fb5701eabc7d",
"type": "roles"
}
]
}
},
"type": "users"
}
]
}Changes
Changes to this operation have not been checked yet.