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
- https://edge-platform.sitecorecloud.iohttps://edge-platform.sitecorecloud.io/authoring/publishing/v1/jobs/{jobId}/cancel
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
curl -i -X POST \
'https://edge-platform.sitecorecloud.io/authoring/publishing/v1/jobs/{jobId}/cancel' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'