Update section
update_sectionChanges a section Section Store added, from install_section or the app's Pre-customise with AI: on every page the merchant placed it, and in Add section. Send only what changes: a setting you leave out keeps its value, and blocks, when sent, replace the whole list. The reply has a picture. If the section is on a page of the live theme, the first call changes nothing: show the merchant the picture and changes, and call again with confirm_token once they agree. undo_change reverses it. It can't move or remove a section: the merchant does that in the theme editor.
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": {
"installed_as": "<installed_as>"
},
"name": "update_section"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| blocks | No | The whole new block list, in order, each { type, settings }. Leave it out to keep the blocks. | |
| settings | No | Only the settings that change, by id as get_section lists them. | |
| theme_id | No | A theme id from list_themes. Default: the live theme. | |
| leave_empty | No | Photo slots to keep empty on purpose, by the path a problem names, like settings.background_image or blocks[1].image. | |
| installed_as | Yes | The section's file, as installed_as from install_section or check_section. | |
| confirm_token | No | From the first call's reply, once the merchant agrees. Only for a section on the live theme. |