Update Multiple Products
Updates several existing products in a single request. Each item identifies a product by its id and includes the fields to change.
HTTP Request
- URL:
/products/multiple - Method:
PUT - Headers:
accessToken: Required. Your API access token.Content-Type:application/json
- Required scope:
READ_WRITE_PRODUCT
Request Body
Send a JSON array. Each item accepts id plus the fields from Create Product.
| Field | Type | Required | Description |
|---|---|---|---|
id | String | Yes | The ID of the product to update. |
sku | String | Yes | SKU of the product. |
name | String | No | Name of the product. |
price | Number | No | Base price of the product. |
| Other fields | No | Any other field from Create Product. |
cURL Example
curl --location --request PUT '<BASE_URL>/products/multiple' \
--header 'accessToken: <ACCESS_TOKEN>' \
--header 'Content-Type: application/json' \
--data '[
{
"id": "6703a1c4e1d2f3a4b5c6d7e8",
"sku": "TSHIRT",
"price": 18.99,
"status": "active"
},
{
"id": "6703a2d9e1d2f3a4b5c6d812",
"sku": "GLV-NIT-M",
"isFeatured": true,
"metaFields": [{ "code": "material", "value": "Nitrile" }]
}
]'
Response
- 200 OK: The products were updated successfully.
- 400 Bad Request: The access token is missing or invalid, or one of the items has a missing or invalid field.
Sample JSON Response
{
"success": true,
"message": "Products updated successfully"
}
Response Details
| Field | Type | Description |
|---|---|---|
success | Boolean | true when the request succeeded. |
message | String | Confirmation message. |
Notes
- Fields work the same way as in Update Product. For example,
variantsreplaces the full list. - When you change
name, the product page URL is updated to match. - Variants you remove are also removed from carts and quotes. Shopping lists switch to another variant of the same product.
- If any item is not valid, none of the products are updated.