Publish site HTML
update_siteReplaces the site's index.html with the given full HTML and publishes it immediately. The previous version is kept in the version history (last 10), so it can be restored. When several people edit the site, pass expected_version (the version from get_site): if someone saved in the meantime, nothing is overwritten and you get a version_conflict error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | Yes | Full HTML of the page (max 5 MB). | |
| site | Yes | Site id or name, e.g. "my-portfolio" or "my-portfolio.hostilo.page" (from list_sites). | |
| expected_version | No | Optional: the version from get_site. If the site was saved by someone else since then, nothing is published and you get a version_conflict error (get the site again and merge). |