POST

Bulk Update Product Property


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Updates a specified property for up to 100 products at a time.

Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permissions
Manage Stores - all permissions
Manage Products
Learn more about app permissions.
Endpoint
POST
https://www.wixapis.com/stores/v1/bulk/products/update

Body Params
idsArray <string>RequiredminItems 1maxItems 100

Product IDs.


setSet

Field to update.

Response Object
resultsArray <BulkProductResult>

Bulk action results.


bulkActionMetadataBulkActionMetadata

Bulk action metadata.

Request
cURL
curl -X POST \ https://www.wixapis.com/stores/v1/bulk/products/update \ -H 'Authorization: <AUTH>' -H 'Content-Type: application/json' \ --data-binary '{ "ids": [ "bb6ddd51-7295-4fc8-8a4f-2521485c738d", "c36bbdbe-fbf8-4a43-810e-a0abdffe70ae", "2966543c-2b2f-4ca1-862c-6a04736c1063", "c9adb138-96f8-4f08-8626-9fef2445c490", "4ed1aa2c-c441-4e3f-8e57-a18886bf52bb" ], "set": { "price": 10.25 } }'
Response
JSON
{ "results": [ { "itemMetadata": { "id": "bb6ddd51-7295-4fc8-8a4f-2521485c738d", "originalIndex": 0, "success": true } }, { "itemMetadata": { "id": "c36bbdbe-fbf8-4a43-810e-a0abdffe70ae", "originalIndex": 1, "success": true } }, { "itemMetadata": { "id": "2966543c-2b2f-4ca1-862c-6a04736c1063", "originalIndex": 2, "success": true } }, { "itemMetadata": { "id": "c9adb138-96f8-4f08-8626-9fef2445c490", "originalIndex": 3, "success": true } }, { "itemMetadata": { "id": "4ed1aa2c-c441-4e3f-8e57-a18886bf52bb", "originalIndex": 4, "success": true } } ], "bulkActionMetadata": { "totalSuccesses": 5, "totalFailures": 0, "undetailedFailures": 0 } }
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?