Update a draft
update_draftChanges a page's name, fields or blocks in its draft; what is live stays as it is until a person publishes. Read the page with get_page first and pass its docVersion. Leave out what should stay. fields and components each replace the whole set, so send every field and block you want to keep. Returns the page summary and the new docVersion for the next change. Pages in review or due to go live cannot be changed. Trip, Trips, Destination and Departure fields and Travel links are checked against what Travel Orbit lists (see get_schema and list_travel_items), and Product, Products and Collection fields against Commerce Orbit (see list_commerce_items).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>",
"docVersion": "<docVersion>"
},
"name": "update_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The page or entry's id, as returned by search_content, list_pages or create_draft. | |
| name | No | A new name. Leave out to keep it. | |
| fields | No | Field values by field key, in the shapes get_schema gives for this content type. On update this replaces all the draft's fields: include the ones you keep. | |
| components | No | The page's blocks, in the blockShape from get_schema. This replaces the whole block list: keep each block you leave unchanged, with its id. | |
| docVersion | Yes | The docVersion from your last get_page or update. If someone else has changed the page since, the call is refused with the current version, so nobody's newer change is overwritten: read it again and retry. Your own changes since that version don't count, so several steps on one page can each pass the version they read. |