delete
/api/v2/jobs/{id}
Python SDK method:
client.jobs.cancel_job(job_id)

Cancel job

Requests cancellation of a job. Returns 202 Accepted; poll GET /api/v2/jobs/{id} to confirm the CANCELED status.

Input Parameters

NameLocationTypeValuesDescriptionValue Required
idpathstring-Resource identifier.Y

Success Responses

202 response: object

Cancellation accepted.

NameTypeDescription
errorobjectDetails about why the job failed (RFC 7807 format), or null if it succeeded.
idstringUnique job identifier.
linksobjectNavigation URLs for polling and result retrieval.
statusstringCurrent job lifecycle state: PENDING, QUEUED, RUNNING, DONE, FAILED, CANCELED, or NOT_FOUND.

Response Errors

HTTP Status CodeReason
400Problem Details error.
401Problem Details error.
429The request rate limit has been exceeded.
500Problem Details error.