Update Product
Updates an existing product. Send only the fields you want to change. To update many products at once, use Update Multiple Products.
HTTP Request
- URL:
/products/{id} - Method:
PUT - Headers:
accessToken: Required. Your API access token.Content-Type:application/json
- Required scope:
READ_WRITE_PRODUCT
Path Parameters
| Parameter | Type | Description |
|---|---|---|
id | String | Required. The ID of the product to update. |
Request Body
Send a JSON object with the fields to change. It accepts the same fields as Create Product, and every field is optional.
| Field | Type | Required | Description |
|---|---|---|---|
name | String | No | Name of the product. |
sku | String | No | SKU of the product. |
price | Number | No | Base price of the product. |
status | String | No | active or inactive. |
options | Array | No | Product options. Replaces the current options. |
variants | Array | No | Product variants. Replaces the current variants. |
mediaGallery | Array | No | Images and videos. Replaces the current gallery. |
metaFields | Array | No | Custom field values to add or change. |
seo | Object | No | SEO settings. Replaces the current SEO settings. |
| Other fields | No | Any other field from Create Product. |
cURL Example
curl --location --request PUT '<BASE_URL>/products/6703a1c4e1d2f3a4b5c6d7e8' \
--header 'accessToken: <ACCESS_TOKEN>' \
--header 'Content-Type: application/json' \
--data '{
"price": 18.99,
"sale": 16.99,
"status": "active",
"seo": {
"pageTitle": "Classic Cotton T-Shirt | Acme Apparel",
"metaKeywords": "t-shirt, cotton",
"metaDescription": "Soft 100% cotton tee."
},
"metaFields": [{ "code": "material", "value": "Organic cotton" }]
}'
Response
- 200 OK: The request was processed. Check
successto confirm the product was updated. - 400 Bad Request: The access token is missing or invalid, the body is empty, or a value is not valid.
Sample JSON Response
{
"success": true,
"message": "Product updated successfully",
"data": {
"id": "6703a1c4e1d2f3a4b5c6d7e8",
"entityId": 1043,
"name": "Classic Cotton T-Shirt",
"sku": "TSHIRT",
"productType": "configurable",
"status": "active",
"price": 18.99,
"sale": 16.99,
"seo": {
"pageTitle": "Classic Cotton T-Shirt | Acme Apparel",
"metaKeywords": "t-shirt, cotton",
"metaDescription": "Soft 100% cotton tee."
},
"metaFields": [
{
"metaFieldId": "66d1f0c2a1b2c3d4e5f60718",
"code": "material",
"label": "Material",
"displayStorefront": true,
"valueType": "text",
"value": "Organic cotton"
}
],
"updatedAt": "2025-10-08T14:40:02.733Z"
}
}
Response Details
| Field | Type | Description |
|---|---|---|
success | Boolean | true when the product was updated. |
message | String | Confirmation message. |
data | Object | The updated product. For all fields, see Get Product. |
Notes
- Objects such as
seo,descriptionanddimensionsare replaced as a whole. Include every sub-field you want to keep. variantsreplaces the full list of variants. Variants are matched by SKU, so existing variants keep their IDs. Variants you leave out are removed.metaFieldsupdates the metafields you send and keeps the others.- If no product matches the ID, the response has
"success": falseand the messageProduct not found. - To change stock levels, use Update Product Inventory.