Learn how Scrivito CMS can help you deliver amazing digital experiences
See Scrivito CMS in action

Publish a working copy

Publishes a working copy.

PUT /tenants/:tenant_id/workspaces/:working_copy_id/publish

Params

  • tenant_id – The ID of the tenant.
  • working_copy_id – The ID of the working copy to be published.

Response

The response is empty.

Since this action is performed in the background, please refer to the tasks API for polling the task status until the result is returned.

Error codes

  • precondition_not_met.approvals_missing
  • precondition_not_met.conflicts_present
  • precondition_not_met.inaccessible_visibility_category_used
  • precondition_not_met.multi_site_disabled
  • precondition_not_met.unavailable_visibility_category_used
  • precondition_not_met.workflow_constraint_violated
  • precondition_not_met.workspace.publish.content_state_id
  • precondition_not_met.workspace.publish.exceeds_obj_limit
  • precondition_not_verifiable.workspace.publish.content_state_id

Example

curl \ -X PUT \ -H 'Content-Type: application/json' \ -u 'api_token:MYTOKEN' \ https://api.scrivito.com/tenants/:tenant_id/workspaces/:w_copy_id/publish