POST
/
public
/
v1
/
executions
/
{executionId}
/
cancel
curl \
  -X POST \
  -u :<access-token> \
  -d '{ "force": true }' \
  https://api.defer.run/public/v1/executions/0ujtsYcgvSTl8PAuAdqWYSMnLOv/cancel
{
  "id": "0ujtsYcgvSTl8PAuAdqWYSMnLOv"
}
curl \
  -X POST \
  -u :<access-token> \
  -d '{ "force": true }' \
  https://api.defer.run/public/v1/executions/0ujtsYcgvSTl8PAuAdqWYSMnLOv/cancel
{
  "id": "0ujtsYcgvSTl8PAuAdqWYSMnLOv"
}

Endpoint

POST https://api.defer.run/public/v1/executions/{execution-id}/cancel

Request

Path Parameters

execution-id
string
required

The execution ID.

Body Parameters

force
boolean

Force the cancellation even if the execution is in running state.

Response

Body

id
string
required

The ID of the execution.