Batch Create Item Publishing
POST {{protocol}}://{{instance_zuid}}.{{instances_api_url}}/{{instances_api_version}}/content/models/{{content_model_zuid}}/items/publishings/batch
Publishes multiple content items at once. This endpoint requires that all content items belong to the same content model.
Request body is an array of objects. Each object represents a content item. Available object property values:
name | description |
---|---|
ZUID | [string] Required. The ZUID of the content item to be published. |
version | [number] Required. The specific item version you want to be published |
publishAt | [date] the date that the item will be published. If "now" is provided, the item will be published immediately |
unpublishAt | [date] the date the item will be unpublished. If "never" is provided, the item will be published forever, starting from the publishAt date |
Request Body
{"0"=>{"ZUID"=>"7-c6acf395b9-jjsv8z", "version"=>1, "publishAt"=>"now", "unpublishAt"=>"never"}, "1"=>{"ZUID"=>"7-a6a9d6e4c6-6znkhv", "version"=>1, "publishAt"=>"now", "unpublishAt"=>"never"}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
RESPONSES
status: Created
{"_meta":{"timestamp":"2024-05-06T14:48:46.207893893Z","totalResults":1,"start":0,"offset":0,"limit":1},"data":{"Publishings":[{"ZUID":"18-1234-1234","itemZUID":"7-1234-1234","version":1,"versionZUID":"9-1234-1234","publishAt":"2024-05-06T14:48:46.170233166Z","unpublishAt":null,"publishedByUserZUID":"5-1234-1234","message":null,"createdAt":"2024-05-06T14:48:46.181678583Z","updatedAt":"2024-05-06T14:48:46.181681756Z","PublishNow":true,"UnpublishNever":true},{"ZUID":"18-5678-5678","itemZUID":"7-5678-5678","version":1,"versionZUID":"9-5678-5678","publishAt":"2024-05-06T14:48:46.19329569Z","unpublishAt":null,"publishedByUserZUID":"5-5678-5678","message":null,"createdAt":"2024-05-06T14:48:46.196325048Z","updatedAt":"2024-05-06T14:48:46.196328483Z","PublishNow":true,"UnpublishNever":true}]}}