Eventjet GraphQL API documentation

renameDiscountGroup

Renames a discount group.

Only DiscountGroup.name changes. The codes the group contains keep their code strings, benefits, constraints and redemptions, and DiscountGroup.id stays the same, so existing references remain valid.

RenameDiscountGroupInput.newName is trimmed, must not be empty or consist only of whitespace, and does not have to be unique among a company's groups. The renamed group is resolved as RenameDiscountGroupPayload.discountGroup; a group ID that does not exist responds with an error.

Authorization is required: you must be allowed to manage the discounts of the company that owns the group.

Arguments

ArgumentDescriptionType
inputRenameDiscountGroupInput!

Type

This field resolves to RenameDiscountGroupPayload, which has the following fields:

FieldDescriptionType
discountGroupDiscountGroup