promotionRuleCreate Mutation
Creates a new promotion rule.
Triggers the following webhook events:
- PROMOTION_RULE_CREATED (async): A promotion rule was created.
Applied directives
@webhookEventsInfo(asyncEvents: [PROMOTION_RULE_CREATED], syncEvents: [])
promotionRuleCreate(input: PromotionRuleCreateInput!): PromotionRuleCreate
Returns
Show return type
type PromotionRuleCreate {
errors: [PromotionRuleCreateError!]!
promotionRule: PromotionRule
}Arguments
input
input · PromotionRuleCreateInput!
Fields required to create a promotion rule.
Schema: Saleor 3.23.43. Download SDL.