Cancel journey runs
Cancel journey runs. The request body must include EXACTLY ONE of cancelation_token (cancels every run associated with the token) or run_id (cancels a single tenant-scoped run). Supplying both or neither returns a 400. A run_id that does not match a run for the tenant returns 404. Cancelation is idempotent: a run that has already finished (PROCESSED/ERROR) or was already CANCELED is left unchanged and its current status is returned.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
- By cancelation token
- By run id
Request body for POST /journeys/cancel. Provide EXACTLY ONE of cancelation_token (cancels every run associated with the token) or run_id (cancels a single tenant-scoped run).
1Response
Cancelation accepted
- Token branch
- Run id branch
202 Accepted body for POST /journeys/cancel, returning the submitted identifier. When called with cancelation_token, returns { cancelation_token }; when called with run_id, returns { run_id, status }.