Skip to main content
Version: Canary 🚧

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.
promotionRuleUpdate(
id: ID!
input: PromotionRuleUpdateInput!
): PromotionRuleUpdate

Arguments

promotionRuleUpdate.id ● ID! non-null scalar

ID of the promotion rule to update.

promotionRuleUpdate.input ● PromotionRuleUpdateInput! non-null input

Fields required to create a promotion rule.

Type

PromotionRuleUpdate object

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.

Was this page helpful?