UpdateProductVariantDTO

The data to update in a product variant. The id is used to identify which product variant to update.

titlestringOptional
The tile of the product variant.
skunull | stringOptional
The SKU of the product variant.
barcodenull | stringOptional
The barcode of the product variant.
eannull | stringOptional
The EAN of the product variant.
upcnull | stringOptional
The UPC of the product variant.
allow_backorderbooleanOptional
Whether the product variant can be ordered when it's out of stock.
manage_inventorybooleanOptional
Whether the product variant's inventory should be managed by the core system.
hs_codenull | stringOptional
The HS Code of the product variant.
origin_countrynull | stringOptional
The origin country of the product variant.
mid_codenull | stringOptional
The MID Code of the product variant.
materialnull | stringOptional
The material of the product variant.
weightnull | numberOptional
The weight of the product variant.
lengthnull | numberOptional
The length of the product variant.
heightnull | numberOptional
The height of the product variant.
widthnull | numberOptional
The width of the product variant.
optionsRecord<string, string>Optional
The product variant options to associate with the product variant.
metadataMetadataTypeOptional
Holds custom data in key-value pairs.
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