updateCoupon
Rename a coupon or change the items it is limited to. Nothing else about a coupon can change: to change its discount, create a new coupon. Pass coupon.title to rename it, or an empty title to remove its name. Pass coupon.limitedItems.values as the complete list of items, since it replaces the current one; only a coupon created with limitedItems enabled accepts it. Returns the updated coupon. Get couponId from getCoupons. Get limitedItems ids from the same location: getResources for bookings, getEvents for eventTickets, getProducts for shopProducts, getPackages for packages, and getPlans for subscriptionItems. An id the location does not have is dropped, so check limitedItems in the result. Never invent UUIDs; only use values from prior tool responses.
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": {
"couponId": "<couponId>",
"coupon": "<coupon>"
},
"name": "updateCoupon"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| coupon | Yes | Coupon fields to update. Fields left out keep their current value. | |
| couponId | Yes | The id of the coupon. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| coupon | Yes |