promotionUpdate Mutation
Updates an existing promotion.
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.
Applied directives
@webhookEventsInfo(asyncEvents: [PROMOTION_UPDATED, PROMOTION_STARTED, PROMOTION_ENDED], syncEvents: [])
promotionUpdate(externalReference: String, id: ID, input: PromotionUpdateInput!): PromotionUpdate
Returns
Show return type
type PromotionUpdate {
errors: [PromotionUpdateError!]!
promotion: Promotion
}Arguments
externalReference
externalReference · String
External ID of a promotion to update.
Added in Saleor 3.23id
id · ID
ID of the promotion to update.
input
input · PromotionUpdateInput!
Fields required to update a promotion.
Schema: Saleor 3.23.43. Download SDL.