update_website
Push updated pages and assets to an existing hosted website. Set sync=true for full site redeploys to delete stale files; use sync=false to edit selected pages.
Instructions
Push updated pages/assets to an existing hosted website (upsert by path).
Files present locally replace the same paths on the site. With sync=false (default) site files not in this upload are left untouched — right for editing a few pages by hand. With sync=true the upload is treated as the complete site: after it lands, every page and asset the site has that this upload does not is deleted. Always use sync=true when redeploying a generator build folder (Docusaurus, Astro, Vite, Next export) — each build renames its hashed chunks, and without sync the old ones pile up forever. Dashboard-authored redirect pages are kept regardless and listed in kept_redirects.
Use publish_website for a brand-new site.
Args: website: The site's id, slug, or live URL (e.g. "https://thin.host/s/my-site/"). source_path: Absolute path to an .html file, a site/build directory, or a .zip. title: Optional new site title. sync: Treat the upload as the whole site and remove everything else.
Returns: url plus updated counts, and with sync=true the removed_pages / removed_assets. framework, base_url, warning as in publish_website.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sync | No | ||
| title | No | ||
| website | Yes | ||
| source_path | Yes |