1 /**
2 * @schema AdminUpdateProductVariant
3 * type: object
4 * description: The properties to update of a product variant.
5 * x-schemaName: AdminUpdateProductVariant
6 * properties:
7 * title:
8 * type: string
9 * title: title
10 * description: The product variant's title.
11 * sku:
12 * type: string
13 * title: sku
14 * description: The product variant's SKU.
15 * ean:
16 * type: string
17 * title: ean
18 * description: The product variant's EAN.
19 * upc:
20 * type: string
21 * title: upc
22 * description: The product variant's UPC.
23 * barcode:
24 * type: string
25 * title: barcode
26 * description: The product variant's barcode.
27 * hs_code:
28 * type: string
29 * title: hs_code
30 * description: The product variant's HS code.
31 * mid_code:
32 * type: string
33 * title: mid_code
34 * description: The product variant's MID code.
35 * allow_backorder:
36 * type: boolean
37 * title: allow_backorder
38 * description: Whether customers can order the variant even if it's not in stock.
39 * manage_inventory:
40 * type: boolean
41 * title: manage_inventory
42 * description: Whether the Medusa application manages the variant's inventory. If 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: "#/components/schemas/AdminCreateProductVariantPrice"
82 * options:
83 * type: object
84 * description: The product variant's options.
85 *
86 */
87