update_site
Replace the HTML of an existing page on the same URL, so visitors see the updated version without getting a new link. Use when revising an already published site to avoid orphaned pages.
Instructions
Replace the HTML of an existing site in place. The URL stays the same, so everyone you already sent it to sees the new version without being sent anything. Use this — not another publish_html — every time you revise a page you have already published: iterating with publish_html strands the link people are holding on the old version and burns a page slot. The PII pre-flight scan runs on the new content too (MCP default: block; pass pii_check: "warn" to override). A 409 managed_portal means this page is a generated client portal: it rebuilds itself from its space, so direct edits would be overwritten — the owner can "customize" it from the space settings in the dashboard, which stops regeneration for good. A 409 site_deleted means the page has stopped serving and is being kept for 30 days: call restore_site on the same id first, then update it. Do not publish it again, which mints a second page at a different URL.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | New HTML content. | |
| filename | No | ||
| pii_check | No | ||
| id_or_slug | Yes | Site id, slug, or unlisted token. |