Change the site draft
draft_site_changeFor shop owners: change the seller's site draft with a list of edits, applied in order, all or none. A page is sections of 1 to 4 columns holding blocks, with stickers on top; a sandboxed custom block is for what typed blocks cannot do. Every id and field is in get_reference. It takes the draft_version last read. It never publishes: the reply's preview_url shows the draft. Pro pieces can be drafted on Free.
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": {
"draft_version": "<draft_version>",
"edits": "<edits>",
"request_id": "<request_id>"
},
"name": "draft_site_change"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edits | Yes | Applied in order, all or none. | |
| restore | No | An earlier unpublished draft to make the draft again, first; publish_site names it. | |
| request_id | Yes | Unique per call; the same id again returns the first result. | |
| draft_version | Yes | As last read; if the site changed since, nothing happens and the reply has the site as it is now. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| card | No | ||
| next | No | ||
| paid | No | ||
| site | No | ||
| added | No | ||
| error | No | ||
| posts | No | ||
| notice | No | ||
| changed | No | ||
| choices | No | ||
| outcome | No | ||
| timezone | No | ||
| preview_url | No | ||
| confirmation | No | ||
| draft_version | No | ||
| upgrade_needed | No | ||
| contrast_suggestions | No | ||
| contrast_suggestions_more | No |