Back to Medusa

UpdatePromotionRuleDTO

www/apps/resources/references/promotion/interfaces/promotion.UpdatePromotionRuleDTO/page.mdx

2.14.21.2 KB
Original Source

import { TypeList } from "docs-ui"

UpdatePromotionRuleDTO

The attributes to update in the promotion rule.

<TypeList types={[{"name":"id","type":"string","description":"The ID of the promotion rule.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"description","type":"null \| string","description":"The description of the promotion rule.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"attribute","type":"string","description":"The attribute of the promotion rule.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"operator","type":"PromotionRuleOperatorValues","description":"The operator of the promotion rule.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"values","type":"string \| string[]","description":"The values of the promotion rule.\nWhen provided, PromotionRuleValue records are\ncreated and associated with the promotion rule.","optional":true,"defaultValue":"","expandable":false,"children":[]}]} expandUrl="https://docs.medusajs.com/learn/fundamentals/data-models/manage-relationships#retrieve-records-of-relation" sectionTitle="UpdatePromotionRuleDTO"/>