Skip to main content

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.

FieldTypeRequiredDescription
idStringYesThe ID of the product to update.
skuStringYesSKU of the product.
nameStringNoName of the product.
priceNumberNoBase price of the product.
Other fieldsNoAny 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​

FieldTypeDescription
successBooleantrue when the request succeeded.
messageStringConfirmation message.

Notes​

  • Fields work the same way as in Update Product. For example, variants replaces 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.