Undo applied change (preview card button)
revert_changesetUndoes a change set that was approved from the app's draft view, on behalf of the signed-in shop owner or admin who pressed Undo. Requires ui_nonce, a single-use token given to that view with the approval; without a valid one nothing happens.
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": {
"changeset_id": "<changeset_id>",
"ui_nonce": "<ui_nonce>"
},
"name": "revert_changeset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ui_nonce | Yes | Single-use token of the draft view's button. | |
| changeset_id | Yes | Change set id. |