AdminUpdateProductVariant

Properties#

titlestringOptional
The variant's title.
skunull | stringOptional
The variant's SKU.
eannull | stringOptional
The variant's EAN.
upcnull | stringOptional
The variant's UPC.
barcodenull | stringOptional
The variant's barcode.
hs_codenull | stringOptional
The variant's HS code.
mid_codenull | stringOptional
The variant's MID code.
allow_backorderbooleanOptional
Whether the variant can be ordered even if it's out of stock.
manage_inventorybooleanOptional
Whether Medusa should manage the variant's inventory. If disabled, the variant is always considered in stock.
variant_ranknumberOptional
The variant's ranking among its sibling variants.
weightnull | numberOptional
The variant's weight.
lengthnull | numberOptional
The variant's length.
heightnull | numberOptional
The variant's height.
widthnull | numberOptional
The variant's width.
origin_countrynull | stringOptional
The variant's origin country.
materialnull | stringOptional
The variant's material.
metadatanull | Record<string, unknown>Optional
Key-value pairs of custom data.
The variant's prices.
optionsRecord<string, string>Optional
The variant's values for the associated product's options.
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