1 type: object
2 description: The product's details.
3 x-schemaName: AdminBatchUpdateProduct
4 properties:
5 title:
6 type: string
7 title: title
8 description: The product's title.
9 subtitle:
10 type: string
11 title: subtitle
12 description: The product's subtitle.
13 description:
14 type: string
15 title: description
16 description: The product's description.
17 is_giftcard:
18 type: boolean
19 title: is_giftcard
20 description: Whether the product is a gift card.
21 discountable:
22 type: boolean
23 title: discountable
24 description: Whether discounts can be applied on the product.
25 images:
26 type: array
27 description: The product's images.
28 items:
29 type: object
30 description: The image's details.
31 required:
32 - url
33 properties:
34 url:
35 type: string
36 title: url
37 description: The image's URL.
38 id:
39 type: string
40 title: id
41 description: The image's ID.
42 thumbnail:
43 type: string
44 title: thumbnail
45 description: The product's thumbnail URL.
46 handle:
47 type: string
48 title: handle
49 description: The product's unique handle.
50 status:
51 type: string
52 description: The product's status.
53 enum:
54 - draft
55 - proposed
56 - published
57 - rejected
58 type_id:
59 type: string
60 title: type_id
61 description: The ID of the product's type.
62 collection_id:
63 type: string
64 title: collection_id
65 description: The ID of the product's collection.
66 categories:
67 type: array
68 description: The product's categories.
69 items:
70 type: object
71 description: The product's category.
72 required:
73 - id
74 properties:
75 id:
76 type: string
77 title: id
78 description: The category's ID.
79 tags:
80 type: array
81 description: The product's tags.
82 items:
83 type: object
84 description: The product's tag.
85 required:
86 - id
87 properties:
88 id:
89 type: string
90 title: id
91 description: The tag's ID.
92 variants:
93 type: array
94 description: >-
95 The product's variants. You can add new variants or update existing ones,
96 passing their IDs in the object.
97 items:
98 oneOf:
99 - $ref: ./AdminCreateProductVariant.yaml
100 - $ref: ./AdminUpdateProductVariant.yaml
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