Site Publish State API: Sample Flows

This article presents a possible use case and corresponding sample flow that you can support. It provides a useful starting point as you plan your implementation.

Take a site offline while its content is under review

An enterprise that runs many sites for its representatives must remove a site from the internet as soon as its content fails a compliance review, and put it back online once the content is approved. The site keeps its content, settings, and domain throughout.

To take a site offline and restore it after the review:

  1. Call Query Sites to find the site and retrieve its ID.
  2. Call Unpublish Site with metaSiteId set to the ID from step 1. The response returns published as false, and visitors can no longer reach the site.
  3. Correct the site's content in the editor and complete the review.
  4. Call Publish Site with the same metaSiteId to make the site live again.

Last updated: 23 September 2026

Did this help?