Skip to main content
POST
/
v1
/
remediation
/
{remediationId}
/
approve
Approve remediation
curl --request POST \
  --url https://api.example.com/v1/remediation/{remediationId}/approve

Overview

Approves a proposed remediation, making it eligible for execution. After approval, use POST /v1/remediation//execute to run it. Required role: admin or owner
Only admins and owners can approve remediations. This restriction exists because approved remediations make changes to production systems. Ensure you have reviewed the remediation steps before approving.

Path parameters

remediationId
string
required
The unique identifier of the remediation to approve. Example: rem_01HX9VTPQR3KF8MZWBYD5N6JCE.

Response

Returns 200 OK with the updated remediation status.
{
  "remediationId": "rem_01HX9VTPQR3KF8MZWBYD5N6JCE",
  "status": "approved"
}
FieldTypeDescription
remediationIdstringThe remediation that was approved
statusstringAlways "approved" after a successful call
Returns 404 Not Found if the remediation does not exist. Returns 403 Forbidden if the authenticated user is not an admin or owner. Returns 409 Conflict if the remediation has already been approved, rejected, or executed.

Examples

curl https://api.causeflow.ai/v1/remediation/rem_01HX9VTPQR3KF8MZWBYD5N6JCE/approve \
  -X POST \
  -H "Authorization: Bearer <token>"