Update promotion
update_promotionChange a promotion's status, code, value, usage limit, or dates, identified by promotion_id or code.
Instructions
Changes a promotion: activate/deactivate (status), rename the code, change the value, usage limit or validity dates. Identify it by promotion_id or code.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "update_promotion"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Current code, to find the promotion | |
| value | No | ||
| status | No | ||
| ends_at | No | null removes the end date | |
| new_code | No | ||
| starts_at | No | null removes the start date | |
| usage_limit | No | null removes the limit | |
| promotion_id | No |