Jobs

Cancel a job

Ask to stop a job.

POST/v1/jobs/{job_id}/cancel

Authorization

Authorizationstringheaderrequired
Bearer ast_gw_.... The key needs the jobs:cancel scope.

Asks to stop a job. A job still waiting in your account queue is canceled at once and fully refunded. A job the provider has accepted is charged in full unless it fails. See Cancel a job.

Path parameters

job_idstringrequired
The job ID.
StatusMeaning
202Done or recorded. The job is either canceled (it was still queued, fully refunded) or cancel_requested (poll for the final status).
200The job was already canceled by an earlier request. No message.
409job_not_cancelable: it already succeeded or failed.

Response

(job fields)object
The job, as in Get a job.
messagestring
On a 202: whether this cancel is refunded. For display only.