Replace a page's content
update_pageReplace the content of an existing page in place: the same URL serves the new content immediately, so links the human already shared keep working. Use this instead of publish_page whenever the page already exists. The previous version stays restorable from the dashboard for 7 days (Pro keeps full version history). Pass draft: true to stage the update instead: nothing changes for viewers until the maker reviews the previewUrl and presses "Sync to live"; use it when the human asked to see changes before they go out. Fails with page_not_found if the id is not a live or offline page in this space.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | Yes | The complete new document (not a diff). HTML, or Markdown when source_type is "markdown". | |
| draft | No | Default false (publishes live instantly). true = stage the update; relay the returned previewUrl so the human can review and press Sync. A new draft replaces any pending one. | |
| title | No | Optional; omit to keep the existing title. | |
| page_id | Yes | The page id: the `id` field from publish_page or list_pages (also the last path segment of the page URL, …/docs/<page_id>). Only pages in the connected maker's space are visible. | |
| project | No | Optional; omit to keep the existing project. | |
| source_type | No | Default "html". |