Bucket Publish
bucket_publishQueue an async publish or republish of the bucket's saved draft as a live public website. Read the current Free website allowance from revdoku_status publishing.free_plan.contract.limits.max_live_publications. Unless the user has already reviewed the site or explicitly asks to publish immediately, use bucket_publish_preview first and share that temporary URL for review. For protected/password/private websites, use bucket_publish_password_protected instead. Pass description when the user wants Revdoku to save explanatory bucket text before publishing. Check bucket_publication_get separately for publish_state ready/failed before telling the user the site is live. Fails with BUCKET_VISIBILITY_CHANGE_LOCKED if the bucket's visibility is locked (first publish or an access-mode change); a same-access-mode republish is allowed. Unlocking is web-UI-only — ask the user to unlock it in the Revdoku app. Published content is subject to Revdoku's Acceptable Use Policy (https://revdoku.com/acceptable-use).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Human-readable title for the bucket or website publication. | |
| bucket_id | Yes | Revdoku bucket id returned by bucket_list or bucket_get, for example bkt_... | |
| site_mode | No | Omit on republish to keep the current routing mode; first publish defaults to static. Use spa when deep links should fall back to the resolved entrypoint. | |
| site_type | No | Deprecated compatibility alias for site_mode. | |
| description | No | Optional bucket description to save before publishing. Protected password gates show this after the bucket title. | |
| tracking_enabled | No | Convenience toggle that sets both analytics_enabled and client_events_enabled when the specific fields are omitted. | |
| analytics_enabled | No | Enable or disable website analytics recording for this publication. | |
| client_events_enabled | No | Enable or disable browser-side Revdoku event tracking for this publication. | |
| publication_root_directory | No | Optional: publish ONLY this top-level folder as the website root, so /styles.css resolves instead of /<folder>/styles.css. Every other file/folder stays stored and version-tracked but is NOT served. Persists on the bucket; pass an empty string to publish the whole bucket again. The folder's index.html/index.htm wins; if its served source set is exactly one top-level HTML file, that file becomes the home page automatically. Other missing-index source sets get a navigation Auto-Index Page with direct HTML links and file previews, rendering README.md/README.txt below the listing. Custom entry filenames are not user-selectable. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| guidance | No | ||
| publication | Yes |