1 type: object
2 description: The product's details.
3 x-schemaName: AdminUpdateProduct
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 thumbnail:
39 type: string
40 title: thumbnail
41 description: The product's thumbnail URL.
42 handle:
43 type: string
44 title: handle
45 description: The product's unique handle.
46 status:
47 type: string
48 description: The product's status.
49 enum:
50 - draft
51 - proposed
52 - published
53 - rejected
54 type_id:
55 type: string
56 title: type_id
57 description: The ID of the product's type.
58 collection_id:
59 type: string
60 title: collection_id
61 description: The ID of the product's collection.
62 categories:
63 type: array
64 description: The product's categories.
65 items:
66 type: object
67 description: The product's category.
68 required:
69 - id
70 properties:
71 id:
72 type: string
73 title: id
74 description: The category's ID.
75 tags:
76 type: array
77 description: The product's tags.
78 items:
79 type: object
80 description: The product's tag.
81 required:
82 - id
83 properties:
84 id:
85 type: string
86 title: id
87 description: The tag's ID.
88 options:
89 type: array
90 description: The product's options.
91 items:
92 $ref: ./AdminUpdateProductOption.yaml
93 variants:
94 type: array
95 description: >-
96 The product's variants. You can add new variants or update existing ones,
97 passing their IDs in the object.
98 items:
99 oneOf:
100 - $ref: ./AdminCreateProductVariant.yaml
101 - $ref: ./AdminUpdateProductVariant.yaml
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.