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(
externalReference: String
id: ID
input: PromotionUpdateInput!
): PromotionUpdate
Details
type PromotionUpdate {
errors: [PromotionUpdateError!]!
promotion: Promotion
}

Arguments​

externalReference ● String​

External ID of a promotion to update.

Added in Saleor 3.23

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.