Workflows

Cancel every run of a workflow

Each run not ended is canceled (its waits and timers go); sends already accepted and webhook requests already handed out are not recalled. Audited `workflow.cancel_runs` with the count.

POST
/workflows/{id}/cancel-runs

Each run not ended is canceled (its waits and timers go); sends already accepted and webhook requests already handed out are not recalled. Audited workflow.cancel_runs with the count.

Authorization

bearer
headerAuthorizationBearer <token>

Path Parameters

id*string
Formatuuid

Response Body

Success

application/json
  1. response
canceled*integer
Formatint64
Range0 <= value
object*string
workflow_id*string
Formatuuid
Example Request
curl -X POST 'https://api.exx.sh/workflows/497f6eca-6276-4993-bfeb-53cbbbba6f08/cancel-runs'
Example Response
{  "canceled": 0,  "object": "string",  "workflow_id": "03e70e31-d7a4-4401-a629-6a4b6096cdfe"}