1 /**
2 * @schema AdminBatchUpdateProduct
3 * type: object
4 * description: The product's details.
5 * x-schemaName: AdminBatchUpdateProduct
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 * id:
41 * type: string
42 * title: id
43 * description: The image's ID.
44 * thumbnail:
45 * type: string
46 * title: thumbnail
47 * description: The product's thumbnail URL.
48 * handle:
49 * type: string
50 * title: handle
51 * description: The product's unique handle.
52 * status:
53 * type: string
54 * description: The product's status.
55 * enum:
56 * - draft
57 * - proposed
58 * - published
59 * - rejected
60 * type_id:
61 * type: string
62 * title: type_id
63 * description: The ID of the product's type.
64 * collection_id:
65 * type: string
66 * title: collection_id
67 * description: The ID of the product's collection.
68 * categories:
69 * type: array
70 * description: The product's categories.
71 * items:
72 * type: object
73 * description: The product's category.
74 * required:
75 * - id
76 * properties:
77 * id:
78 * type: string
79 * title: id
80 * description: The category's ID.
81 * tags:
82 * type: array
83 * description: The product's tags.
84 * items:
85 * type: object
86 * description: The product's tag.
87 * required:
88 * - id
89 * properties:
90 * id:
91 * type: string
92 * title: id
93 * description: The tag's ID.
94 * variants:
95 * type: array
96 * description: The product's variants. You can add new variants or update existing ones, passing their IDs in the object.
97 * items:
98 * oneOf:
99 * - $ref: "#/components/schemas/AdminCreateProductVariant"
100 * - $ref: "#/components/schemas/AdminUpdateProductVariant"
101 * sales_channels:
102 * type: array
103 * description: The sales channels that the product is available in.
104 * items:
105 * type: object
106 * description: The sales channel's details.
107 * required:
108 * - id
109 * properties:
110 * id:
111 * type: string
112 * title: id
113 * description: The sales channel's ID.
114 * weight:
115 * type: number
116 * title: weight
117 * description: The product's weight.
118 * length:
119 * type: number
120 * title: length
121 * description: The product's length.
122 * height:
123 * type: number
124 * title: height
125 * description: The product's height.
126 * width:
127 * type: number
128 * title: width
129 * description: The product's width.
130 * hs_code:
131 * type: string
132 * title: hs_code
133 * description: The product's HS code.
134 * mid_code:
135 * type: string
136 * title: mid_code
137 * description: The product's MID code.
138 * origin_country:
139 * type: string
140 * title: origin_country
141 * description: The product's origin country.
142 * material:
143 * type: string
144 * title: material
145 * description: The product's material.
146 * metadata:
147 * type: object
148 * description: The product's metadata, can hold custom key-value pairs.
149 * externalDocs:
150 * url: https://docs.medusajs.com/api/admin#manage-metadata
151 * description: Learn how to manage metadata
152 * external_id:
153 * type: string
154 * title: external_id
155 * description: The ID of the product in an external or third-party system.
156 * id:
157 * type: string
158 * title: id
159 * description: The product's ID.
160 * shipping_profile_id:
161 * type: string
162 * title: shipping_profile_id
163 * description: The ID of the product's shipping profile.
164 * option_ids:
165 * type: array
166 * description: The ID of the product's options.
167 * items:
168 * type: string
169 * title: option_ids
170 * description: The product option's ID.
171 * required:
172 * - id
173 *
174 */
175