Publish site, page or item
publishMake the draft live. With no page_slug or item it promotes the whole draft — the step that turns a draft into a real site; until it runs the live URL does not resolve. With page_slug it publishes one page; with item, one collection item. Publish ONLY on the owner's explicit yes after they have seen the preview — never auto-publish, and don't read 'change X' as 'change X and publish'. If it returns billing_gate, pass its message on as it is and ask the owner what to do; never unpublish another site to make room. Reversible with undo (what: 'last_publish'). The returned url is verified to render.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item | No | Publish ONLY this collection item (a blog post, a product): add_content_item writes a draft, this takes it live. Omit to publish the whole site. | |
| locale | No | Locale of the page or item variant. Defaults to 'en'. | |
| site_id | Yes | ||
| page_slug | No | Publish ONLY this page (e.g. '/about', '/' for home), leaving every other page and the site-wide header/theme as they are. The site must already be live. Omit to publish the whole site. |