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

NameTypeDescription

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

NameTypeDescription

Authorization*

string

bearer XXXXXXXXXXXXX ... is your APP_SID cookie or authorization token found in the code tab)

{
    "totalQueued": 1,
    "estimatedTotalQueueTimeInSeconds": 0.0005555555555555556,
    "instanceZUID": "8-f48cf3a682-7dthvk",
    "contentLanguage": "en-US",
    "modelZUID": "6-852420-2mhz4v",
    "message": "1 items queued to publish for instance 8-f48cf3a682-7dthvk. Each item will publish in a queue over the next ~0.00 minutes."
}

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

NameTypeDescription

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

NameTypeDescription

Authorization*

string

bearer XXXXXXXXXXXXX ... is your APP_SID cookie or authorization token found in the code tab)

{
    "totalQueued": 1,
    "estimatedTotalQueueTimeInSeconds": 0.0005555555555555556,
    "instanceZUID": "8-f48cf3a682-7dthvk",
    "contentLanguage": "en-US",
    "modelZUID": "6-852420-2mhz4v",
    "message": "1 items queued to publish for instance 8-f48cf3a682-7dthvk. Each item will publish in a queue over the next ~0.00 minutes."
}

Last updated