1 type: object
2 description: The properties to update of a product variant.
3 x-schemaName: AdminUpdateProductVariant
4 properties:
5 title:
6 type: string
7 title: title
8 description: The product variant's title.
9 sku:
10 type: string
11 title: sku
12 description: The product variant's SKU.
13 ean:
14 type: string
15 title: ean
16 description: The product variant's EAN.
17 upc:
18 type: string
19 title: upc
20 description: The product variant's UPC.
21 barcode:
22 type: string
23 title: barcode
24 description: The product variant's barcode.
25 hs_code:
26 type: string
27 title: hs_code
28 description: The product variant's HS code.
29 mid_code:
30 type: string
31 title: mid_code
32 description: The product variant's MID code.
33 allow_backorder:
34 type: boolean
35 title: allow_backorder
36 description: Whether customers can order the variant even if it's not in stock.
37 manage_inventory:
38 type: boolean
39 title: manage_inventory
40 description: >-
41 Whether the Medusa application manages the variant's inventory. If
42 disabled, the product variant is always considered in stock.
43 variant_rank:
44 type: number
45 title: variant_rank
46 description: The product variant's rank among its siblings.
47 weight:
48 type: number
49 title: weight
50 description: The product variant's weight.
51 length:
52 type: number
53 title: length
54 description: The product variant's length.
55 height:
56 type: number
57 title: height
58 description: The product variant's height.
59 width:
60 type: number
61 title: width
62 description: The product variant's width.
63 origin_country:
64 type: string
65 title: origin_country
66 description: The product variant's origin country.
67 material:
68 type: string
69 title: material
70 description: The product variant's material.
71 metadata:
72 type: object
73 description: The product variant's metadata, can hold custom key-value pairs.
74 externalDocs:
75 url: https://docs.medusajs.com/api/admin#manage-metadata
76 description: Learn how to manage metadata
77 prices:
78 type: array
79 description: The product variant's prices.
80 items:
81 $ref: ./AdminCreateProductVariantPrice.yaml
82 options:
83 type: object
84 description: The product variant's options.