updatePromotionRulesStep - Medusa Core Workflows Reference
This documentation provides a reference to the updatePromotionRulesStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step updates one or more promotion rules.
Example#
Input#
UpdatePromotionRulesWorkflowDTO
UpdatePromotionRulesWorkflowDTOThe data to update promotion rules.
UpdatePromotionRulesWorkflowDTO
UpdatePromotionRulesWorkflowDTOdata
UpdatePromotionRuleDTO[]The promotion rules to update.
data
UpdatePromotionRuleDTO[]Output#
PromotionRuleDTO[]
PromotionRuleDTO[]
PromotionRuleDTO[]
PromotionRuleDTO[]id
stringThe ID of the promotion rule.
id
stringvalues
PromotionRuleValueDTO[]The values of the promotion rule.
values
PromotionRuleValueDTO[]description
null | stringOptionalThe description of the promotion rule.
description
null | stringOptionalattribute
stringOptionalThe attribute of the promotion rule.
attribute
stringOptionalThe operator of the promotion rule.
Was this page helpful?