UpdatePromotionDTO

The attributes to update in the promotion.

idstring
The ID of the promotion.
is_automaticbooleanOptional
Whether the promotion is applied automatically.
codestringOptional
The code of the promotion.
The type of the promotion.
statusPromotionStatusValuesOptional
The status of the promotion:
  • draft indicates that a promotion is currently being prepared
  • active indicates that a promotion is active
  • inactive indicates that a promotion is no longer active
application_methodOmit<UpdateApplicationMethodDTO, "id">Optional
The associated application method.
campaign_idnull | stringOptional
The associated campaign's ID.
Was this page helpful?
Edit this page
Ask Anything
FAQ
What is Medusa?
How can I create a module?
How can I create a data model?
How do I create a workflow?
How can I extend a data model in the Product Module?
Recipes
How do I build a marketplace with Medusa?
How do I build digital products with Medusa?
How do I build subscription-based purchases with Medusa?
What other recipes are available in the Medusa documentation?
Chat is cleared on refresh
Line break