Creates a new publishing job.
Note
To create 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 Sitecore Client Advanced Publishing or Sitecore Client Publishing roles or have the admin flag set in XM Cloud. Note
Client token of applications must have the
xmcloud.cm:admin scope. Security
Bearer
The request for creating the job.
Source of the job. This is typically the application name specified as the source (for example, Pages, Sites, and so on).
- https://edge-platform.sitecorecloud.iohttps://edge-platform.sitecorecloud.io/authoring/publishing/v1/jobs
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
- application/json
- text/json
- application/*+json
curl -i -X POST \
https://edge-platform.sitecorecloud.io/authoring/publishing/v1/jobs \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"name": "string",
"source": "string",
"options": {
"items": [
{
"id": "string",
"type": "string",
"locale": "string"
}
],
"xmc": {
"locales": [
"string"
],
"site": {
"mode": "Republish"
},
"items": {
"publishRelatedItems": false,
"publishChildren": false,
"mode": "Republish"
}
}
},
"description": "string"
}'Job successfully created.
The permissions of the current user or application to work with the job.
Response
- Items
- Site
{ "id": "string", "description": "string", "name": "string", "options": { "xmc": { … } }, "source": "string", "statistics": { "lastReportTime": "2019-08-24T14:15:22Z", "itemsSent": 0, "itemsProcessed": 0, "itemsFailed": 0, "xmc": { … } }, "system": { "organizationId": "string", "tenantId": "f97df110-f4de-492e-8849-4a6af68026b0", "tenantJobId": "string", "status": "Queued", "queuedTime": "2019-08-24T14:15:22Z", "startTime": "2019-08-24T14:15:22Z", "finishTime": "2019-08-24T14:15:22Z", "createdBy": { … }, "canceledBy": { … } }, "permissions": { "canViewDetails": true, "canCancel": true } }