Cancel a request
POST/approval/:id/cancel
Cancels a request. Only a request that is pending, or that is approved (approved or auto_approved) and hasn't started executing, can be cancelled. A request that stayed executing for more than 60 seconds can be cancelled too.
Cancelling a request that belongs to a checklist also cancels its checklist run, and cancelling a group approval (for example, a deployment group) cancels the pending approvals that belong to it.
The response carries the request after the cancellation: its status is cancelled and its execution_status tells whether the cancel callback ran (success) or failed (failed).
Request
Responses
- 200
- 400
- 4XX
- 5XX
The request was cancelled.
The request can't be cancelled: it expired, or its status is not pending or approved and waiting to execute.
The request couldn't be processed. For example, a parameter is invalid, the resource doesn't exist, or you don't have permission. The body is a problem details object (RFC 9457).
Something went wrong on nullplatform's side. The body is a problem details object (RFC 9457).