Overview
Aborts an in-progress investigation for an incident. All running AI agents are stopped and any partial results are preserved. The incident status reverts to open so you can re-trigger investigation later if needed.
Required role: admin
Aborting an investigation discards partial analysis. Any evidence already collected is preserved in triage, but AI findings are cleared. Re-triggering investigation starts fresh.
JWT Bearer token. Format: Bearer <your-jwt>.
Path parameters
The incident whose investigation you want to abort. Example: inc_EXAMPLE_01JX.
Request body
Optional reason for aborting. Recorded in the incident audit log.
Response
Returns 200 OK.
{
"incidentId": "inc_EXAMPLE_01JX",
"status": "open",
"abortedAt": "2024-04-01T14:45:00Z",
"agentsStopped": 3
}
| Field | Type | Description |
|---|
incidentId | string | The incident ID |
status | string | Reverted status — always open after abort |
abortedAt | string | ISO 8601 timestamp of abort |
agentsStopped | integer | Number of running agents that were terminated |
Error responses
| Status | Error code | Description |
|---|
401 | unauthorized | Missing or invalid JWT |
403 | forbidden | Caller lacks admin role |
404 | incident_not_found | No incident with the given ID |
409 | no_active_investigation | No investigation is currently running for this incident |
Examples
curl https://api.causeflow.ai/v1/investigation/inc_EXAMPLE_01JX \
-X DELETE \
-H "Authorization: Bearer eyJhbGc..." \
-H "Content-Type: application/json" \
-d '{
"reason": "False alarm — monitoring rule was misconfigured"
}'
Start investigation
Re-trigger investigation after an abort
Update incident status
Manually close or resolve the incident