Update promocode
update_promocodeUpdate an existing promocode by sending only the fields to change, such as code, title, discount value, dates, status, binding mode, or limits.
Instructions
Update an existing promocode (plain application/json PATCH): send only the fields to change (code, title, discount_value, promocode_dates, status, binding_mode, limits). Call get_operation_schema("UpdatePromocode") for the exact request shape.
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>",
"promocode": "<promocode>"
},
"name": "update_promocode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Promocode ID (UUID). | |
| promocode | Yes | Fields to update, matching the UpdatePromocodeRequest schema (see get_operation_schema("UpdatePromocode")). Must not be empty. |