Cancel Workflow
Changed onAPI to cancel a running workflow execution. You can cancel a workflow by passing any combination of filters in the request body. When multiple parameters are provided, they are ANDed together to narrow down the matching workflow runs.
For example, passing both workflow and recipients will cancel only the workflow runs that match both the given slug and recipients.
post/v1/workflow_run/cancel/
Request
- Base URLhttps://hub.suprsend.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"execution_id": "dsl_xxxx-xxxx-xxxx-xxxx",
"recipients": [
"user_123",
"user_456"
],
"idempotency_key": "a1b2c3d4-xxxx-xxxx-xxxx-ef0123456789",
"workflow": "order-confirmation"
}Response
200 - OK
Example response
{
"execution_ids": [
"dsl_xxxx-xxxx-xxxx-xxxx"
]
}Changes
- warning
removed the request property
- info
added the new optional request property
- warning
- info
endpoint added
- info