update_page_blocks
Replace all content blocks on a page in one operation. Preserves existing content for blocks with matching ids; review blockWarnings to correct invalid block data before saving.
Instructions
Set the full content blocks array on a page (replaces all existing content blocks). Blocks with matching ids keep their existing content when not provided. Only call after the user confirms. If the result includes blockWarnings, the saved content violates the workspace block manifest (unknown block type, unknown field or wrong value shape) - correct the content and save again.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| blocks | No | Full array of content blocks to set on the page (replaces all) | |
| pageId | No | Page id | |
| target | No | 'draft' (default) writes the shared page draft. 'devDraft' writes YOUR per-user dev draft overlay (owned by the token's user) - use it to compose with block types that are not deployed to the site yet; promote it with promote_dev_draft after the code ships. |