Workflows
Cancel workflow
Changed onWhen invoked for a workflow using a specific workflow key and cancellation key, will cancel any queued workflow runs associated with that key/cancellation key pair. Can optionally be provided one or more recipients to scope the request to.
post/v1/workflows/{key}/cancel
Request
- Base URL: https://api.knock.app
- URL: https://api.knock.app/v1/workflows/{key}/cancel
- Auth: HTTP bearer
Path parameters
keystring required
The key of the workflow to cancel.
Request body
Example request
{
"cancellation_key": "cancel-workflow-123",
"recipients": [
"jhammond"
]
}Response
No Content
Changes
- info
api operation id
cancelWorkflowremoved and replaced withcancelWorkflow (2)
- info
- breaking
removed the media type
application/jsonfor the response with the status
- breaking