unpublish_website
Take a published website OFFLINE -- the undo of publish_website.
Use when the user wants their site taken down, made private again, or wants to free a domain so it can serve a DIFFERENT website. Ask them to confirm first if the request is ambiguous: the site stops being reachable for real visitors immediately.
NOTHING IS DELETED. The project, its pages, its images and its content all survive -- this only stops serving them. publish_website puts the site back. Say this plainly when confirming, because "unpublish" sounds permanent and it is not.
What happens to the address:
a CUSTOM domain is released -- it stops serving, its plan domain slot comes back, and the domain stays in the account (list_domains still shows it, and it can be published to again, including to a different project);
a FREE Orivox subdomain is parked but KEPT for this project, so republishing later returns the SAME address rather than a new random one. Tell the user their address is preserved.
Safe to call twice: a project that was not published reports was_published=false and nothing changes. To delete a project entirely (irreversible) use delete_project instead -- these are different actions and must not be confused.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_guid | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||