Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Cases & incidents

Find, assign, mute, and close Data Quality V2 cases, and read the incidents and evidence inside them

When a monitor run fails, Decube raises an incident and files it under a case. The Cases & incidents endpoints let you work those cases from outside Decube: pull open cases into a ticketing tool, assign them to the right owner, and read the evidence behind each failure.

How incidents become cases

Decube groups incidents by monitor configuration version:

  • A failed run raises one incident. The incident records what Decube measured and, where available, a query you can run to inspect the failing rows.

  • Incidents join the open case for their version. If the version has no open case, Decube opens one.

  • Closing a case ends its grouping. The next failure opens a new case, so each round of a problem has its own record and owner.

Cases and Case details describe the same model in the UI.

Find cases

POST /data_quality/cases/search

Search Cases

post

Search cases by filters.

Body
querystring · nullableOptional

Search term to match against the monitor name (substring match, case insensitive)

page_sizeinteger · min: 1 · max: 100Optional

Number of results per page

Default: 25
page_numberinteger · min: 1 · max: 100000Optional

Page number of the results

Default: 1
Responses
200

Successful Response

application/json
page_numberintegerRequired
page_sizeintegerRequired
post/data_quality/cases/search
POST /api/v1/data/data_quality/cases/search HTTP/1.1
Host: connect.<REGION>.decube.io
Content-Type: application/json
Accept: */*
Content-Length: 341

{
  "query": "text",
  "filters": {
    "assets": [
      {
        "type": "text",
        "id": 1
      }
    ],
    "monitor_ids": [
      1
    ],
    "monitor_types": [
      "freshness_sla"
    ],
    "assignees": [
      "text"
    ],
    "states": [
      "open"
    ],
    "incident_from": "2026-01-01",
    "incident_to": "2026-01-01",
    "custom_attributes": [
      {
        "config_id": 1,
        "operator": "AND",
        "type": "text",
        "condition": "text",
        "value": true
      }
    ]
  },
  "page_size": 25,
  "page_number": 1
}
{
  "items": [
    {
      "id": 1,
      "state": "open",
      "monitor": {
        "id": 1,
        "name": "text",
        "description": "text",
        "dq_dimension": "accuracy",
        "source_id": 1,
        "enabled": true,
        "invalid_reason": "primary_asset_incompatible_type",
        "configuration": {
          "id": 1,
          "version_number": 1,
          "next_scheduled_at": "2026-01-01T00:00:00.000Z",
          "last_run_state": "queued",
          "last_run_state_updated_at": "2026-01-01T00:00:00.000Z",
          "type": "text",
          "schedule": {
            "frequency": "every_30_minutes"
          },
          "threshold": {
            "type": "text",
            "value": 1,
            "unit": "minutes"
          },
          "detection_method": {
            "type": "text"
          },
          "primary_asset": {
            "asset": {
              "type": "text",
              "name": "text",
              "id": 1,
              "subtype": "bigquery",
              "qual_id": "text",
              "icon": {
                "type": "text",
                "icon": "airbyte"
              }
            },
            "parents": [
              {
                "type": "text",
                "name": "text",
                "id": 1,
                "subtype": "bigquery",
                "qual_id": "text",
                "icon": {
                  "type": "text",
                  "icon": "airbyte"
                }
              }
            ],
            "assets": [
              {
                "type": "text",
                "name": "text",
                "id": 1,
                "subtype": "bigquery",
                "qual_id": "text",
                "icon": {
                  "type": "text",
                  "icon": "airbyte"
                }
              }
            ],
            "attrs": {
              "ANY_ADDITIONAL_PROPERTY": "anything"
            }
          }
        },
        "custom_attributes": [
          {
            "id": 1,
            "type": "text",
            "label": "text",
            "description": "text",
            "management_type": "user",
            "system_identifier": "constraints",
            "value": "text"
          }
        ],
        "has_edit_permission": true
      },
      "incident_count": 1,
      "first_incident_time": "2026-01-01T00:00:00.000Z",
      "latest_incident_time": "2026-01-01T00:00:00.000Z",
      "assignee_id": "text",
      "muted_until": "2026-01-01T00:00:00.000Z",
      "has_edit_permission": true
    }
  ],
  "page_number": 1,
  "page_size": 1
}

Every field in the body is optional. An empty body {} returns all the cases you can view.

Results sort by latest incident, most recent first. A case moves to the top of the list when a new incident joins it, so if you page through a large result set while monitors are running, a case can shift between pages. Filter on incident_to to hold the window fixed.

Get a case

GET /data_quality/cases/details?case_id=789

Get Case Details

get

Get case details

Query parameters
case_idintegerRequired
Responses
200

Successful Response

application/json
idintegerRequired
statestring · enumRequiredPossible values:
incident_countintegerRequired
first_incident_timestring · date-timeRequired
latest_incident_timestring · date-timeRequired
assignee_idstring · nullableRequired
muted_untilstring · date-time · nullableRequired
has_edit_permissionbooleanRequired
get/data_quality/cases/details
GET /api/v1/data/data_quality/cases/details?case_id=1 HTTP/1.1
Host: connect.<REGION>.decube.io
Accept: */*
{
  "id": 1,
  "state": "open",
  "monitor": {
    "id": 1,
    "name": "text",
    "description": "text",
    "dq_dimension": "accuracy",
    "source_id": 1,
    "enabled": true,
    "invalid_reason": "primary_asset_incompatible_type",
    "configuration": {
      "id": 1,
      "version_number": 1,
      "next_scheduled_at": "2026-01-01T00:00:00.000Z",
      "last_run_state": "queued",
      "last_run_state_updated_at": "2026-01-01T00:00:00.000Z",
      "type": "text",
      "schedule": {
        "frequency": "every_30_minutes"
      },
      "threshold": {
        "type": "text",
        "value": 1,
        "unit": "minutes"
      },
      "detection_method": {
        "type": "text"
      },
      "primary_asset": {
        "asset": {
          "type": "text",
          "name": "text",
          "id": 1,
          "subtype": "bigquery",
          "qual_id": "text",
          "icon": {
            "type": "text",
            "icon": "airbyte"
          }
        },
        "parents": [
          {
            "type": "text",
            "name": "text",
            "id": 1,
            "subtype": "bigquery",
            "qual_id": "text",
            "icon": {
              "type": "text",
              "icon": "airbyte"
            }
          }
        ],
        "assets": [
          {
            "type": "text",
            "name": "text",
            "id": 1,
            "subtype": "bigquery",
            "qual_id": "text",
            "icon": {
              "type": "text",
              "icon": "airbyte"
            }
          }
        ],
        "attrs": {
          "ANY_ADDITIONAL_PROPERTY": "anything"
        }
      }
    },
    "custom_attributes": [
      {
        "id": 1,
        "type": "text",
        "label": "text",
        "description": "text",
        "management_type": "user",
        "system_identifier": "constraints",
        "value": "text"
      }
    ],
    "has_edit_permission": true
  },
  "incident_count": 1,
  "first_incident_time": "2026-01-01T00:00:00.000Z",
  "latest_incident_time": "2026-01-01T00:00:00.000Z",
  "assignee_id": "text",
  "muted_until": "2026-01-01T00:00:00.000Z",
  "has_edit_permission": true
}

Returns one case:

  • assignee_id — the user who owns the case, or null.

  • muted_until — when a mute ends, or null if the case isn't muted.

  • monitor — the monitor that raised the case, with the configuration version the case belongs to. This can be an earlier version than the monitor's active one.

Update a case

Update Case

patch

Assign, close, mute, or unmute a case.

Query parameters
case_idintegerRequired
Body
assignee_idany ofOptionalDefault: {}
or
object · NotChangedOptional
actionany ofOptionalDefault: {}
or
object · NotChangedOptional
Responses
200

Successful Response

application/json
idintegerRequired
statestring · enumRequiredPossible values:
incident_countintegerRequired
first_incident_timestring · date-timeRequired
latest_incident_timestring · date-timeRequired
assignee_idstring · nullableRequired
muted_untilstring · date-time · nullableRequired
has_edit_permissionbooleanRequired
patch/data_quality/cases
PATCH /api/v1/data/data_quality/cases?case_id=1 HTTP/1.1
Host: connect.<REGION>.decube.io
Content-Type: application/json
Accept: */*
Content-Length: 67

{
  "assignee_id": {
    "value": "text"
  },
  "action": {
    "value": {
      "type": "text"
    }
  }
}
{
  "id": 1,
  "state": "open",
  "monitor": {
    "id": 1,
    "name": "text",
    "description": "text",
    "dq_dimension": "accuracy",
    "source_id": 1,
    "enabled": true,
    "invalid_reason": "primary_asset_incompatible_type",
    "configuration": {
      "id": 1,
      "version_number": 1,
      "next_scheduled_at": "2026-01-01T00:00:00.000Z",
      "last_run_state": "queued",
      "last_run_state_updated_at": "2026-01-01T00:00:00.000Z",
      "type": "text",
      "schedule": {
        "frequency": "every_30_minutes"
      },
      "threshold": {
        "type": "text",
        "value": 1,
        "unit": "minutes"
      },
      "detection_method": {
        "type": "text"
      },
      "primary_asset": {
        "asset": {
          "type": "text",
          "name": "text",
          "id": 1,
          "subtype": "bigquery",
          "qual_id": "text",
          "icon": {
            "type": "text",
            "icon": "airbyte"
          }
        },
        "parents": [
          {
            "type": "text",
            "name": "text",
            "id": 1,
            "subtype": "bigquery",
            "qual_id": "text",
            "icon": {
              "type": "text",
              "icon": "airbyte"
            }
          }
        ],
        "assets": [
          {
            "type": "text",
            "name": "text",
            "id": 1,
            "subtype": "bigquery",
            "qual_id": "text",
            "icon": {
              "type": "text",
              "icon": "airbyte"
            }
          }
        ],
        "attrs": {
          "ANY_ADDITIONAL_PROPERTY": "anything"
        }
      }
    },
    "custom_attributes": [
      {
        "id": 1,
        "type": "text",
        "label": "text",
        "description": "text",
        "management_type": "user",
        "system_identifier": "constraints",
        "value": "text"
      }
    ],
    "has_edit_permission": true
  },
  "incident_count": 1,
  "first_incident_time": "2026-01-01T00:00:00.000Z",
  "latest_incident_time": "2026-01-01T00:00:00.000Z",
  "assignee_id": "text",
  "muted_until": "2026-01-01T00:00:00.000Z",
  "has_edit_permission": true
}

Pass the case ID as a query parameter. The body is partial: include assignee_id, action, or both, and leave out anything you don't want to change. Wrap each change in a value object, so Decube can tell "set this to null" apart from "leave this alone".

To…
Send

Assign the case

{ "assignee_id": { "value": "<user-id>" } }

Remove the assignee

{ "assignee_id": { "value": null } }

Close the case

{ "action": { "value": { "type": "close" } } }

Mute alerts

{ "action": { "value": { "type": "mute", "duration": "1W" } } }

Resume alerts

{ "action": { "value": { "type": "unmute" } } }

You can combine an assignment and an action in one request:

How each change behaves:

  • Assign — Decube emails the new assignee. Look up a user's ID with the Users API.

  • Mute — stops alerts for the case for 1D, 1W, or 1M, counted from the time of your request. The monitor keeps running and new incidents still join the case. The response shows the end time in muted_until.

  • Unmute — resumes alerts before the mute ends.

  • Close — marks the investigation finished. You can't reopen a closed case. The next failure opens a new one.

Every change appears in the case's audit history, the same as a change made in the UI.

List the incidents in a case

Lists the incidents in one case, newest first. Each item has the incident id and its scheduled_at time. Takes page_size (default 25, maximum 100) and page_number.

List Case Incidents

get

List the incidents of a case.

Query parameters
case_idintegerRequired
page_sizeinteger · min: 1 · max: 100OptionalDefault: 25
page_numberinteger · min: 1 · max: 100000OptionalDefault: 1
Responses
200

Successful Response

application/json
page_numberintegerRequired
page_sizeintegerRequired
get/data_quality/cases/incidents
GET /api/v1/data/data_quality/cases/incidents?case_id=1 HTTP/1.1
Host: connect.<REGION>.decube.io
Accept: */*
{
  "items": [
    {
      "id": 1,
      "scheduled_at": "2026-01-01T00:00:00.000Z"
    }
  ],
  "page_number": 1,
  "page_size": 1
}

Get an incident

Get Incident Details

get

Get incident details

Query parameters
incident_idintegerRequired
Responses
200

Successful Response

application/json
idintegerRequired
case_idintegerRequired
run_idintegerRequired
scheduled_atstring · date-timeRequired
evidenceone ofRequired
or
or
or
or
or
or
or
or
or
or
debug_querystring · nullableRequired
get/data_quality/incidents/details
GET /api/v1/data/data_quality/incidents/details?incident_id=1 HTTP/1.1
Host: connect.<REGION>.decube.io
Accept: */*
{
  "id": 1,
  "case_id": 1,
  "run_id": 1,
  "scheduled_at": "2026-01-01T00:00:00.000Z",
  "evidence": {
    "type": "freshness_sla",
    "metric": {
      "type": "text",
      "value": "2026-01-01T00:00:00.000Z",
      "scheduled_at": "2026-01-01T00:00:00.000Z",
      "collected_at": "2026-01-01T00:00:00.000Z",
      "completed_at": "2026-01-01T00:00:00.000Z",
      "threshold": {
        "type": "text",
        "value": 1,
        "unit": "minutes"
      }
    },
    "computed_age": 1
  },
  "debug_query": "text"
}

Returns one incident in full:

  • case_id and run_id — the case the incident belongs to and the run that raised it. Pass run_id to Check a run for the run's timing.

  • evidence — what Decube measured and why the check failed. Its fields depend on the monitor type, matching the Evidence panel in the UI.

  • debug_query — a SQL query you can run on your source to inspect the failing rows. null for monitor types that don't produce one.

Frequently Asked Questions

Can I reopen a closed case?

No. Closing a case ends its grouping window. If the monitor fails again, Decube opens a new case, and the earlier case stays in the record.

Does muting a case stop the monitor?

No. Muting stops alerts only. The monitor keeps running on its schedule, and failures still join the case as incidents. To stop the monitor itself, disable it.

Why doesn't my case show the monitor's current settings?

A case belongs to the configuration version that raised it. If someone made a destructive change to the monitor since then, the case shows the earlier version. Failures under the new version open their own cases.

Last updated