- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
updatePromotionRulesWorkflow - Medusa Core Workflows Reference
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 CodeExamples#
Steps#
Workflow Hook
Step conditioned by when
Input#
UpdatePromotionRulesWorkflowDTO
UpdatePromotionRulesWorkflowDTOThe data to update promotion rules.
UpdatePromotionRulesWorkflowDTO
UpdatePromotionRulesWorkflowDTOdata
UpdatePromotionRuleDTO[]The promotion rules to update.
data
UpdatePromotionRuleDTO[]Output#
PromotionRuleDTO[]
PromotionRuleDTO[]
PromotionRuleDTO[]
PromotionRuleDTO[]PromotionRuleDTO
PromotionRuleDTOThe promotion rule details.
PromotionRuleDTO
PromotionRuleDTOWas this page helpful?