Undo a change
undo_changeUse when the venue owner wants to undo a change made through update_products, add_products or hide_products. Pass the change_id returned when the change was saved. Undoing an added product removes it (and the category created with it, if left empty), as long as it was not changed after being added; otherwise it is hidden. Two steps: preview without confirm, then confirm: true after the owner agrees. Requires the owner to connect their PRENOTO account.
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 |
|---|---|---|---|
| confirm | No | false or omitted: preview only. true: undo, only after the owner agreed. | |
| change_id | Yes | Returned by the tool that made the change. |