Publishing All Content
Often at a project launch there is a desire to publish all content at once. This explains how you publish all content, or all content on a single model.
To publish all the latest versions of content items on a content instance make an authenticated get request a described below. Please note, this is not reversible and it will publish all drafted versions.
Publish All endpoints runs against the default language, to publish alternative languages you must send the lang
option with the language code you wish to publish.
Note these endpoints queue individual publishing requests which process at 1,800 a minute.
These endpoints must be made with an authentication token made from a user login. Developer tokens will not work.
Publish All Content
Will iterate through each model of an instance, and queue all items for publishing.
Publish All Content
GET
https://us-central1-zesty-prod.cloudfunctions.net/publishAllContent
Publishes the latest version of every content item in every content model on an instance.
Query Parameters
Name | Type | Description |
---|---|---|
instanceZUID* | string | 8-xyz-xyz ... This Zesty Unique Identifier can be found in accounts.zesty.io by clicking into your instance's setting |
lang | String | The language code variant, example: es-MX. Defaults to en-US |
Headers
Name | Type | Description |
---|---|---|
Authorization* | string | bearer XXXXXXXXXXXXX ... is your APP_SID cookie or authorization token found in the code tab) |
Publish All Model Content
Will iterate through each item in a specific single content model and queue them for publishing.
Publish All Model Content
GET
https://us-central1-zesty-prod.cloudfunctions.net/publishAllModelContent
Publishes the latest version of every content item in every content model on an instance.
Query Parameters
Name | Type | Description |
---|---|---|
modelZUID* | string | 6-d0497c-h9jhcq ... The model zuid of all the content you want to pulish |
instanceZUID* | string | 8-xyz-xyz ... This Zesty Unique Identifier can be found in accounts.zesty.io by clicking into your instance's setting |
lang | String | The language code variant, example: es-MX. Default to en-US |
Headers
Name | Type | Description |
---|---|---|
Authorization* | string | bearer XXXXXXXXXXXXX ... is your APP_SID cookie or authorization token found in the code tab) |
Last updated