Skip to main content

promotionUpdate Mutation

Updates an existing promotion.

Requires the 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
Details
type PromotionUpdate {
errors: [PromotionUpdateError!]!
promotion: Promotion
}

Arguments​

id ● ID!​

ID of the promotion to update.

input ● PromotionUpdateInput!​

Fields required to update a promotion.

Type​

PromotionUpdate​

Updates an existing promotion.

Requires the 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.