Patch Page
patch_pageApply targeted changes to an existing page without sending the full content. base_version_hash is optional — if omitted, find/replace acts as the natural conflict guard. Supports replace, delete, insert_before and insert_after operations. Much more efficient than a full replacement for small edits.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | The page slug to patch | |
| patches | Yes | Array of patch operations. Each patch needs: operation ("replace" or "delete"), find (exact string to locate). For replace: also include replace (new string). The find string must match exactly once in the page content. | |
| project_id | Yes | The project ID | |
| patch_summary | No | Brief description of what was changed (optional, stored in version history) | |
| base_version_hash | No | Optional. The current version_hash of the page. If provided and mismatched, returns 409 with details. If omitted, find/replace handles conflicts naturally. |