Approve draft (preview card button)
approve_changesetApplies a draft change set in the shop on behalf of the signed-in shop owner or admin who pressed Approve in the app's draft view. Requires ui_nonce, a single-use token that the server gives to that view in the result metadata; 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": "approve_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. |