Case Management
Add insights to a case
Adds one or more insights to a case. Insights are references to related Datadog resources (such as monitors, security signals, incidents, or error tracking issues) that provide investigative context. Up to 100 insights can be added per request. Each insight requires a type (see CaseInsightType for allowed values), a ref (URL path to the resource), and a resource_id.
put/api/v2/cases/{case_id}/insights
Request
- Base URLhttps://api.datadoghq.com
- URLhttps://api.datadoghq.com/api/v2/cases/{case_id}/insights
- 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/token scopes: cases_write
Path parameters
case_idstring required
Case's UUID or key
Request body
Example request
{
"data": {
"attributes": {
"insights": [
{
"ref": "/monitors/12345?q=total",
"resource_id": "12345",
"type": "SECURITY_SIGNAL"
}
]
},
"type": "case"
}
}Response
OK
Example response
{
"data": {
"attributes": {
"jira_issue": {
"status": "COMPLETED"
},
"key": "CASEM-4523",
"priority": "NOT_DEFINED",
"service_now_ticket": {
"status": "COMPLETED"
},
"status": "OPEN",
"status_group": "SG_OPEN",
"status_name": "Open",
"title": "Memory leak investigation on API",
"type": "STANDARD",
"type_id": "3b010bde-09ce-4449-b745-71dd5f861963"
},
"id": "aeadc05e-98a8-11ec-ac2c-da7ad0900001",
"relationships": {
"assignee": {
"data": {
"id": "00000000-0000-0000-0000-000000000000",
"type": "user"
}
},
"created_by": {
"data": {
"id": "00000000-0000-0000-0000-000000000000",
"type": "user"
}
},
"modified_by": {
"data": {
"id": "00000000-0000-0000-0000-000000000000",
"type": "user"
}
},
"project": {
"data": {
"id": "e555e290-ed65-49bd-ae18-8acbfcf18db7",
"type": "project"
}
}
},
"type": "case"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.