cURL
curl --request POST \ --url https://api.example.com/job/cancel/{job_id} \ --header 'Authorization: Bearer <token>'
{ "job_id": "<string>", "message": "<string>", "status": "canceling" }
Cancel a running or pending job. Returns 202 immediately after setting job to CANCELING. Cancellation runs in the background. Poll /job/info/ to track progress.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Job already canceled (idempotent)
Was this page helpful?