Change Incident Status
Acknowledge, assign, reassign, and resolve a data quality incident through the Collate REST API and Python SDK using task transitions.
POST
POST /v1/tasks/{id}/resolve
Change Incident Status
Change an incident’s status by applying a transition to its task. The incident ID is the task ID.The Python examples on this page use the original client (
metadata.ingestion.ometa.ometa_api.OpenMetadata) because SDK 2.0 (metadata.sdk) doesn’t include incident operations. For more information, see Which Python SDK Should I Use?.POST /v1/tasks/{id}/resolve
string
required
UUID of the incident task.
Body Parameters
The request body accepts these fields:string
The transition to apply:
ack, assign, reassign, new, or resolve. Read the incident’s availableTransitions to see which are valid right now.string
Required when you resolve. Use
Completed.string
Comment to add. Required for
resolve.object
Data the transition needs. See the examples that follow.
transitionId or resolutionType. Collate rejects an empty body.
Acknowledge an Incident
To acknowledge an incident, send theack transition.
POST /v1/tasks/{id}/resolve
Assign or Reassign an Incident
Useassign when the incident isn’t yet assigned, and reassign when its stage is already assigned. Pass the new assignees in payload.assignees as entity references.
Resolve an Incident
Resolving requires a comment and a failure reason inpayload.testCaseFailureReason: FalsePositive, MissingData, Duplicates, OutOfBounds, or Other.
Reopen an Incident
A resolved incident has no available transitions. To reopen it, post anAck or Assigned status to the test case incident status endpoint. Collate reopens the same incident task.
POST /v1/dataQuality/testCases/testCaseIncidentStatus
new stage instead, as the Incident Manager does, create a task for the test case with POST /v1/tasks:
Add Comments, Change Severity, and Close an Incident
- Comments:
POST /v1/tasks/{id}/commentsadds a comment to the incident. - Severity:
PATCH /v1/dataQuality/testCases/testCaseIncidentStatus/{id}updatesseverity(Severity1toSeverity5) on a status record. Collate accepts patches only toseverity,updatedAt, andupdatedBy. - Close without resolving:
POST /v1/tasks/{id}/closecancels the task. Only the creator or an assignee can close it. For incidents, useresolveinstead.
Change Status With the Legacy Endpoint
Status changes throughPOST /v1/dataQuality/testCases/testCaseIncidentStatus still work. Collate applies each write to the incident task, so existing clients keep working. Ack maps to the ack transition, Assigned to assign or reassign, and Resolved to resolve.
create_test_case_resolution. For new code, prefer the task transitions.
Change Many Incidents at Once
UsePUT /v1/dataQuality/testCases/testCaseIncidentStatus/bulk to change the status, the severity, or both for up to 100 incidents in one request. The Incident Manager uses it when you change the status or severity of the incidents in selected groups.
Send an array of status changes. Each item has the same fields as a single POST to the test case incident status endpoint:
string
required
Fully qualified name of the test case whose incident you want to change.
string
required
The status to set:
New, Ack, Assigned, or Resolved.object
The assignee, or the failure reason and comment, as for a single status change.
string
Severity to set:
Severity1 to Severity5.400 error.
The response is a bulk operation result. status is success when every item succeeded, partialSuccess when some failed, and failure when none succeeded. The numberOfRowsProcessed, numberOfRowsPassed, and numberOfRowsFailed fields hold the counts, and successRequest and failedRequest list each item. Each failed item has a message and a status code: 403 when the caller can’t edit the test case, and 400 for any other reason.
An item fails for reasons such as these:
- The incident already has that status and no new severity. If the status is the same but the severity is different, Collate updates the severity.
- The incident is open and the item moves it back to
New. - The test case doesn’t exist.