Unpublish entries and assets in bulk
POST https://{{base_url}}/v3/bulk/unpublish
The Unpublish entries and assets in bulk request allows you to unpublish multiple entries and assets at the same time.
To configure the permissions for your application via OAuth, please include the cm.bulk-operations:unpublish scope.
To use the API Request, you will need to authenticate yourself either with a Management Token (highly recommended) or an Authtoken.Â
Read more about it in Authentication.
For more information, refer to the Unpublish entries and assets in bulk API Reference document
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
skip_workflow_stage_check | boolean | Set this to 'true' to publish the entries that are at a workflow stage where they satisfy the applied publish rules. | |
approvals | boolean | Set this to 'true' to publish the entries that do not require an approval to be published. |
Request Body
{"entries"=>[{"content_type"=>"news", "uid"=>"bhs12565525612", "locale"=>"en-us"}, {"content_type"=>"article", "uid"=>"bjhcud11787212", "locale"=>"en-us"}], "workflow"=>{"workflow_stage"=>{"comment"=>"String Comment", "due_date"=>"Thu Dec 01 2018", "notify"=>false, "uid"=>"bueyr8723823", "assigned_to"=>[{"uid"=>"bhgt28726372", "name"=>"user_name", "email"=>"user_email_ID"}], "assigned_by_roles"=>[{"uid"=>"gsshgs27627361", "name"=>"Content Manager"}]}}, "locales"=>["en-us"], "environments"=>["{{env_uid}}"]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
api_key | string | Enter the API key of the stack. | |
authtoken | string | Enter your authtoken. | |
authorization | string | For this call we recommend you to use management token. | |
branch | string | Enter your branch unique ID. | |
api_version | string | Enter the API version to enable Nested Reference Publishing. | |
Content-Type | string |