- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
AdminUpdateProductVariant
Properties#
title
stringOptionalThe variant's title.
sku
null | stringOptionalThe variant's SKU.
ean
null | stringOptionalThe variant's EAN.
upc
null | stringOptionalThe variant's UPC.
barcode
null | stringOptionalThe variant's barcode.
hs_code
null | stringOptionalThe variant's HS code.
mid_code
null | stringOptionalThe variant's MID code.
allow_backorder
booleanOptionalWhether the variant can be ordered even if it's out of stock.
manage_inventory
booleanOptionalWhether Medusa should manage the variant's inventory. If disabled,
the variant is always considered in stock.
variant_rank
numberOptionalThe variant's ranking among its sibling variants.
weight
null | numberOptionalThe variant's weight.
length
null | numberOptionalThe variant's length.
height
null | numberOptionalThe variant's height.
width
null | numberOptionalThe variant's width.
origin_country
null | stringOptionalThe variant's origin country.
material
null | stringOptionalThe variant's material.
metadata
null | Record<string, unknown>OptionalKey-value pairs of custom data.
The variant's prices.
options
Record<string, string>OptionalThe variant's values for the associated product's options.
Was this page helpful?