Request

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.

Security
Bearer
Path
jobIdstringrequired

The ID of the publishing job to cancel, for example job_AE86B.

curl -i -X POST \
  'https://edge-platform.sitecorecloud.io/authoring/publishing/v1/jobs/{jobId}/cancel' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

Job cancellation successfully requested.

Response
No content