Loading...
Was this page helpful?
This documentation provides a reference to the updatePromotionRulesWorkflow
. It belongs to the @medusajs/medusa/core-flows
package.
This workflow updates one or more promotion rules. It's used by other workflows, such as batchPromotionRulesWorkflow that manages the rules of a promotion.
You can use this workflow within your own customizations or custom workflows, allowing you to update promotion rules within your custom flows.
Source CodeWorkflow hook
Step conditioned by when
View step details
UpdatePromotionRulesWorkflowDTO
UpdatePromotionRulesWorkflowDTOdata
UpdatePromotionRuleDTO[]PromotionRuleDTO[]
PromotionRuleDTO[]id
stringvalues
PromotionRuleValueDTO[]description
null | stringOptionalattribute
stringOptional