PUT
/v1/product-variants/bulkUpdates multiple product variants in a single request. Each variant update is processed independently - failures on individual variants don't affect others. Returns a summary of succeeded/failed updates with details.
Request Body
Fields in the request body
Required
| Name | Type | Description |
|---|---|---|
updates | array<BulkUpdateProductVariantItem> | List of product variants to update with their changes |
Response Data
Fields returned in the response
Always Present
| Name | Type | Description |
|---|---|---|
errors | List of errors for failed updates | |
failed | integer | Number of failed updates |
results | array<ProductVariantResponse> | List of successfully updated product variants |
succeeded | integer | Number of successfully updated items |
PUT
/v1/product-variants/bulkRequest
curl https://api.thesweetspot.com/v1/product-variants/bulk \
-X PUT \
-H "Content-Type: application/json" \
-d '{
"updates": [
{}
]
}'Response
{
"errors": [
{
"error": null,
"id": null
}
],
"failed": 0,
"results": [
{}
],
"succeeded": 0
}