Cancel a campaign run
POST/run/:id/cancel
Cancels a campaign run: a queued one is CANCELLED at once; for a running one a cancel is requested (cancel_requested_at), and its executor stops and finishes it as CANCELLED at its next heartbeat. 400 for an attack run (cancel its campaign run), 409 when the run already finished.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 409
- 429
OK
The run is an attack run, not a campaign run.
Missing, invalid, expired or revoked credential, or a credential this endpoint does not accept.
The credential may not do this (for example a run token outside its own run, or a caller without an organization), or the installation is read-only because its license is not valid (code: license_read_only).
Not found: no such object in the caller's organization.
Conflict
Rate limited: retry after the number of seconds in the Retry-After header.