Approve or reject a pending remediation approval.
approval.requested event is emitted via SSE. This endpoint records the decision and either proceeds with execution or cancels the remediation step.
Required role: admin
approval.requested SSE event or in the notification payload’s approvalId field.approve — authorize the remediation step to proceedreject — cancel the remediation step; the incident remains open for manual resolution200 OK confirming the decision was recorded and indicating the resulting remediation status.
| Field | Type | Description |
|---|---|---|
approvalId | string | The approval request identifier |
action | string | The decision recorded: approve or reject |
remediationId | string | The associated remediation identifier |
remediationStatus | string | New remediation status: executing (approved) or cancelled (rejected) |
decidedBy | string | Identifier of the user who made the decision |
decidedAt | string | ISO 8601 timestamp when the decision was recorded |
| Status | Error code | Description |
|---|---|---|
400 | validation_error | action is missing or not one of approve/reject |
404 | not_found | No approval request with the given approvalId exists |
409 | already_resolved | This approval request has already been approved or rejected |