update_automatic_discount_basic
Update an existing basic automatic discount by modifying only specified fields such as title, value, dates, or eligibility conditions.
Instructions
Update an existing basic automatic discount. Only provided fields are changed.
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_automatic_discount_basic"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | GID of the automatic discount node. | |
| title | No | ||
| startsAt | No | ||
| endsAt | No | ||
| discountType | No | ||
| discountValue | No | ||
| appliesOnEachItem | No | ||
| appliesToAll | No | ||
| productIds | No | ||
| collectionIds | No | ||
| variantIds | No | ||
| minimumSubtotal | No | ||
| minimumQuantity | No | ||
| combinesWith | No | Discount classes this discount can combine with. |