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.
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. |