Update promotion
update_promotion[REQUIRES HUMAN APPROVAL] Change an existing promotional or discount code. Pass promotionId from list_promotions and the updated attributes; returns the promotion API response.
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": {
"promotionId": "<promotionId>",
"attributes": "<attributes>"
},
"name": "update_promotion"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | [REQUIRES HUMAN APPROVAL] Pass `true` to execute. This is a programmatic backstop to the description tag. Destructive tools also require your approval through the client. | |
| eventId | No | Event ID. Defaults to active event. | |
| attributes | Yes | Promotion fields in dashboard shape. | |
| promotionId | Yes | Promotion ID. | |
| idempotencyKey | No | Reuse the same key to replay a recorded successful request; use a new key for a different change. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | No | The API result when it is a list, scalar or null rather than an object. | |
| success | No | Whether the promotion was updated. |