curl --request POST \
--url https://api-dev.narrative.io/workflows/{workflow_id}/runs/{run_id}/cancel \
--header 'Authorization: Bearer <token>'Request cancellation of a specific workflow execution identified by its run ID. This is the recommended method for cancelling workflow executions, as it guarantees that only the intended execution is cancelled. Unlike cancelling by workflow ID alone, this avoids a race condition where:
curl --request POST \
--url https://api-dev.narrative.io/workflows/{workflow_id}/runs/{run_id}/cancel \
--header 'Authorization: Bearer <token>'Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Unique identifier for a workflow.
Unique identifier for a workflow execution run.
Cancellation request was sent successfully.
Was this page helpful?