Update bundle
update_bundleChanges a bundle: its deals, discounts, texts, products it applies to, free gifts, upsells, schedule and look. Send only what changes, named as get_bundle returns it. Deals are addressed by short_id; add one with new: true and delete one with remove: true. A bundle that is off saves at once. A bundle that is on goes in two steps: the first call saves nothing and returns a picture of the change, the list of changes and a confirm_token. Show the merchant, and when they say yes, call again with the same id and confirm_token (you can omit changes, or resend the same changes). Use set_bundle_status to switch it on or off. For an A/B test, version B, C or D changes that version while the test is a draft, and saves at once.
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": {
"id": "<id>"
},
"name": "update_bundle"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Bundle id from list_bundles. | |
| changes | No | Fields to change, named as get_bundle returns them. Objects merge into what is there; lists replace the whole list. Text may use {{saved_total}}, {{saved_percent}} and {{product}}; mix and match item titles may use {{product_title}}. | |
| version | No | A/B test version. Default A, the live item. B, C and D change only while the test is a draft. | |
| confirm_token | No | For a bundle that is on: the token from the preview, once the merchant said yes. When passed, changes may be omitted. |