Skip to main content

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​

ParameterTypeDescription
idStringRequired. 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.

FieldTypeRequiredDescription
nameStringNoName of the product.
skuStringNoSKU of the product.
priceNumberNoBase price of the product.
statusStringNoactive or inactive.
optionsArrayNoProduct options. Replaces the current options.
variantsArrayNoProduct variants. Replaces the current variants.
mediaGalleryArrayNoImages and videos. Replaces the current gallery.
metaFieldsArrayNoCustom field values to add or change.
seoObjectNoSEO settings. Replaces the current SEO settings.
Other fieldsNoAny 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 success to 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​

FieldTypeDescription
successBooleantrue when the product was updated.
messageStringConfirmation message.
dataObjectThe updated product. For all fields, see Get Product.

Notes​

  • Objects such as seo, description and dimensions are replaced as a whole. Include every sub-field you want to keep.
  • variants replaces the full list of variants. Variants are matched by SKU, so existing variants keep their IDs. Variants you leave out are removed.
  • metaFields updates the metafields you send and keeps the others.
  • If no product matches the ID, the response has "success": false and the message Product not found.
  • To change stock levels, use Update Product Inventory.