Skip to content

Cancel a pending or failed job

POST
/admin/jobs/{id}/cancel

Admin action: move a pending or failed job to cancelled. Cancelling a job that is already running is not supported and returns 409. Gated on system.admin.

id
required
string format: uuid

Job cancelled.

Authentication required, missing, or invalid

object
error
required

Human-readable error summary

string
Example
the request could not be completed
Example
{
"error": "authentication required: sign in and retry with a valid session or API token"
}

Authenticated but missing required capabilities

object
error
required

Human-readable error summary

string
Example
the request could not be completed

Resource not found

object
error
required

Human-readable error summary

string
Example
the request could not be completed

Conflict (slug taken, would create cycle, etc.)

object
error
required

Human-readable error summary

string
Example
the request could not be completed