> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

## Resource: Introduction

## Article: Introduction

## Article Link: https://dev.wix.com/docs/api-reference/account-level/enterprise/site-management/site-publish-state-v1/introduction.md

## Article Content:

# About the Site Publish State API

The Site Publish State API lets you take a site in your Wix Enterprise account offline from your own systems, without deleting it. Use it when a site must stop serving visitors right away, for example while its content is under review, and keep the site intact so it can go live again later.

With the Site Publish State API, you can take a published site offline.

To make a site live again, call [Publish Site](https://dev.wix.com/docs/rest/account-level/sites/site-actions/publish-site.md) in the Site Actions API. To find the ID of a site in the account, call [Query Sites](https://dev.wix.com/docs/rest/account-level/sites/sites/query-sites.md) in the Sites API.

## Before you begin

It's important to note the following points before starting to code:

- This API is called with an Enterprise [API key](https://support.wix.com/en/article/about-wix-api-keys). Send the key in the `Authorization` header and the ID of the account that owns the key in the `wix-account-id` header. The key needs the Manage Site SSL & Publish State permission scope.
- Every request identifies the site to act on in `metaSiteId`.
- The site must be published when you call Unpublish Site. The call fails for a site that's already offline.
- Unpublishing doesn't delete the site or any of its content. The site stays in the account and remains editable.

## Use cases

- [Take a site offline while its content is under review](https://dev.wix.com/docs/api-reference/account-level/enterprise/site-management/site-publish-state-v1/sample-flows.md#take-a-site-offline-while-its-content-is-under-review)

## Terminology

- **Published site**: A site that's live on the internet and reachable by visitors at its domain.
- **Unpublished site**: A site that stays in the account and remains editable, but isn't reachable by visitors.

@sdk_package_setup