# Cancel a publishing job

Cancels a publishing job with a specific ID.


Note
To cancel a publishing job, your token must include one of the following
scopes: xmcpub.jobs.a:w, xmcpub.jobs.t:w, or xmcpub.jobs.t:wl.
Users with a scope of xmcpub.jobs.t:wl (limited write) must also have a
Sitecore Client Advanced Publishing or Sitecore Client Publishing
roles or have the admin flag set in the XM Cloud instance.
If access token includes only xmcpub.jobs.t:wl scope, callers
must be able to cancel only those publishing job which they started.

Note
Client tokens of applications must
have the xmcloud.cm:admin scope.

Endpoint: POST /authoring/publishing/v1/jobs/{jobId}/cancel
Version: v1.0
Security: Bearer

## Path parameters:

  - `jobId` (string, required)
    The ID of the publishing job to cancel, for example job_AE86B.

## Response 400 fields (application/json):

  - `type` (string,null)

  - `title` (string,null)

  - `status` (integer,null)

  - `detail` (string,null)

  - `instance` (string,null)


## Response 202 fields

## Response 501 fields
