promotionRuleUpdate Mutation
Updates an existing promotion rule.
Triggers the following webhook events:
- PROMOTION_RULE_UPDATED (async): A promotion rule was updated.
Applied directives
@webhookEventsInfo(asyncEvents: [PROMOTION_RULE_UPDATED], syncEvents: [])
promotionRuleUpdate(id: ID!, input: PromotionRuleUpdateInput!): PromotionRuleUpdate
Returns
Show return type
type PromotionRuleUpdate {
errors: [PromotionRuleUpdateError!]!
promotionRule: PromotionRule
}Arguments
id
id · ID!
ID of the promotion rule to update.
input
input · PromotionRuleUpdateInput!
Fields required to create a promotion rule.
Schema: Saleor 3.23.43. Download SDL.