update_price_rule
Modify an existing price rule by updating only the fields you provide, such as title, discount value, status, schedule, or usage limits. Keep the value as a string when changing discounts.
Instructions
Update an existing price rule. Side effect: modifies the price rule. Only provided fields are updated. value must remain a string if updating.
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": {
"price_rule_id": "<price_rule_id>"
},
"name": "update_price_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Updated price rule title. | |
| value | No | Updated discount value as string (e.g. "-15.0"). | |
| status | No | Updated status. | |
| ends_on | No | Updated end date. null = remove expiry. | |
| starts_on | No | Updated start date (ISO 8601). | |
| usage_limit | No | Updated usage limit. | |
| price_rule_id | Yes | Price rule ID to update. Required. | |
| once_per_customer | No | Updated per-customer limit. |