Skip to main content

PromotionRuleUpdate

Updates an existing promotion rule.

Added in Saleor 3.17
This API is currently in Feature Preview and can be subject to changes at later point.
Requires MANAGE_DISCOUNTSpermission.

Triggers the following webhook events:

  • PROMOTION_RULE_UPDATED (async): A promotion rule was updated.
type PromotionRuleUpdate {
errors: [PromotionRuleUpdateError!]!
promotionRule: PromotionRule
}

Fields

PromotionRuleUpdate.errors ● [PromotionRuleUpdateError!]! non-null object miscellaneous

PromotionRuleUpdate.promotionRule ● PromotionRule object discounts

Returned By

promotionRuleUpdate mutation