Undo assistant change
undo_changeReverses one change an AI assistant made to a bundle, a cart, an A/B test version or a section (update_section), by change_id from list_changes. Ask the merchant first: on a live bundle, cart or theme, shoppers see the result at once. Undo goes newest first for each item, and it refuses when someone changed the item since, so no one's work is lost. A change undoes this way: an update brings back the earlier content, a status change switches back, a create or copy deletes it, and a delete brings it back switched off. A version change undoes only while its test is a draft. Publishing a test's winner undoes like an update. Changes are kept 30 days.
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": {
"change_id": "<change_id>"
},
"name": "undo_change"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| change_id | Yes | From list_changes. |