Case Management
Aggregate cases
Performs an aggregation query over cases, grouping results by specified fields and returning counts per group along with a total. Useful for dashboards and analytics.
post/api/v2/cases/aggregate
Request
- Base URLhttps://api.datadoghq.com
- URLhttps://api.datadoghq.com/api/v2/cases/aggregate
- 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_read
Request body
Example request
{
"data": {
"attributes": {
"group_by": {
"groups": [
"status"
],
"limit": 14
},
"query_filter": "service:case-api"
},
"type": "aggregate"
}
}Response
OK
Example response
{
"data": {
"attributes": {
"groups": [
{
"group": "OPEN",
"value": [
42
]
}
],
"total": 100
},
"id": "agg-result-001",
"type": "aggregate"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.