modifyDiscountGroupConstraints
Replaces the constraints of every discount in a discount group in one call.
The list in ModifyDiscountGroupConstraintsInput.constraints replaces whatever each code in the group
carried before; constraints that are not repeated are dropped, and an empty list leaves every code
without any constraint. Individual edits previously made with changeDiscountConstraints are
overwritten, so DiscountGroup.constraints resolves to a common set again afterwards instead of
null.
Each entry must set exactly one of time, redemptions or ticketTypes, and a group can carry at most one constraint of each kind. An entry with no field set, a second entry of the same kind, or an unknown ticket type ID responds with an error.
Because every code in the group is rewritten, this can take a while for large groups. To change a
single code instead, use changeDiscountConstraints. The updated group is resolved as
ModifyDiscountGroupConstraintsPayload.group; a group ID that does not exist responds with an error.
Authorization is required: you must be allowed to manage discounts.
Arguments
| Argument | Description | Type |
|---|---|---|
| input | ModifyDiscountGroupConstraintsInput! |
Type
This field resolves to ModifyDiscountGroupConstraintsPayload, which has the following fields:
| Field | Description | Type |
|---|---|---|
group | DiscountGroup |