1 /**
2 * @schema AdminUpdateProduct
3 * type: object
4 * description: The product's details.
5 * x-schemaName: AdminUpdateProduct
6 * properties:
7 * title:
8 * type: string
9 * title: title
10 * description: The product's title.
11 * subtitle:
12 * type: string
13 * title: subtitle
14 * description: The product's subtitle.
15 * description:
16 * type: string
17 * title: description
18 * description: The product's description.
19 * is_giftcard:
20 * type: boolean
21 * title: is_giftcard
22 * description: Whether the product is a gift card.
23 * discountable:
24 * type: boolean
25 * title: discountable
26 * description: Whether discounts can be applied on the product.
27 * images:
28 * type: array
29 * description: The product's images.
30 * items:
31 * type: object
32 * description: The image's details.
33 * required:
34 * - url
35 * properties:
36 * url:
37 * type: string
38 * title: url
39 * description: The image's URL.
40 * thumbnail:
41 * type: string
42 * title: thumbnail
43 * description: The product's thumbnail URL.
44 * handle:
45 * type: string
46 * title: handle
47 * description: The product's unique handle.
48 * status:
49 * type: string
50 * description: The product's status.
51 * enum:
52 * - draft
53 * - proposed
54 * - published
55 * - rejected
56 * type_id:
57 * type: string
58 * title: type_id
59 * description: The ID of the product's type.
60 * collection_id:
61 * type: string
62 * title: collection_id
63 * description: The ID of the product's collection.
64 * categories:
65 * type: array
66 * description: The product's categories.
67 * items:
68 * type: object
69 * description: The product's category.
70 * required:
71 * - id
72 * properties:
73 * id:
74 * type: string
75 * title: id
76 * description: The category's ID.
77 * tags:
78 * type: array
79 * description: The product's tags.
80 * items:
81 * type: object
82 * description: The product's tag.
83 * required:
84 * - id
85 * properties:
86 * id:
87 * type: string
88 * title: id
89 * description: The tag's ID.
90 * options:
91 * type: array
92 * description: The product's options.
93 * items:
94 * $ref: "#/components/schemas/AdminUpdateProductOption"
95 * variants:
96 * type: array
97 * description: The product's variants. You can add new variants or update existing ones, passing their IDs in the object.
98 * items:
99 * oneOf:
100 * - $ref: "#/components/schemas/AdminCreateProductVariant"
101 * - $ref: "#/components/schemas/AdminUpdateProductVariant"
102 * sales_channels:
103 * type: array
104 * description: The sales channels that the product is available in.
105 * items:
106 * type: object
107 * description: The sales channel's details.
108 * required:
109 * - id
110 * properties:
111 * id:
112 * type: string
113 * title: id
114 * description: The sales channel's ID.
115 * weight:
116 * type: number
117 * title: weight
118 * description: The product's weight.
119 * length:
120 * type: number
121 * title: length
122 * description: The product's length.
123 * height:
124 * type: number
125 * title: height
126 * description: The product's height.
127 * width:
128 * type: number
129 * title: width
130 * description: The product's width.
131 * hs_code:
132 * type: string
133 * title: hs_code
134 * description: The product's HS code.
135 * mid_code:
136 * type: string
137 * title: mid_code
138 * description: The product's MID code.
139 * origin_country:
140 * type: string
141 * title: origin_country
142 * description: The product's origin country.
143 * material:
144 * type: string
145 * title: material
146 * description: The product's material.
147 * metadata:
148 * type: object
149 * description: The product's metadata, can hold custom key-value pairs.
150 * externalDocs:
151 * url: https://docs.medusajs.com/api/admin#manage-metadata
152 * description: Learn how to manage metadata
153 * external_id:
154 * type: string
155 * title: external_id
156 * description: The ID of the product in an external or third-party system.
157 *
158 */
159