Skip to main content

promotionUpdate Mutation

Updates an existing promotion.

Requires MANAGE_DISCOUNTSpermission.

Triggers the following webhook events:

  • PROMOTION_UPDATED (async): A promotion was updated.
  • PROMOTION_STARTED (async): Optionally called if promotion was started.
  • PROMOTION_ENDED (async): Optionally called if promotion was ended.
promotionUpdate(
id: ID!
input: PromotionUpdateInput!
): PromotionUpdate

Arguments

promotionUpdate.id ● ID! non-null scalar miscellaneous

ID of the promotion to update.

promotionUpdate.input ● PromotionUpdateInput! non-null input miscellaneous

Fields required to update a promotion.

Type

PromotionUpdate object discounts

Updates an existing promotion.

Requires MANAGE_DISCOUNTSpermission.

Triggers the following webhook events:

  • PROMOTION_UPDATED (async): A promotion was updated.
  • PROMOTION_STARTED (async): Optionally called if promotion was started.
  • PROMOTION_ENDED (async): Optionally called if promotion was ended.