bigcommerce-api-python icon indicating copy to clipboard operation
bigcommerce-api-python copied to clipboard

Is there a way to update products in batches (more than 1 at a time)?

Open HaiSycamore opened this issue 5 years ago • 1 comments

Currently, I'm using the following to update information about a single product.

api.Products.get(1234).update(inventory_level=20)

Is there a way to update multiple products? I've tried something like this, but got a 404 error.

api.Products.get([123, 456]).update(inventory_level=20)

ERROR: 404 Not Found @ products/[123,456]: b'[{"status":404,"message":"The requested resource was not found."}]'

BigCommerce allow 10 product updates at a time, so I'm trying to see if that is possible. https://developer.bigcommerce.com/api-reference/catalog/catalog-api/products/updateproducts

HaiSycamore avatar May 05 '20 15:05 HaiSycamore

Hello there @HaiSycamore -- The Python API tool is currently using Catalog V2 API calls to make requests, you can find more info about the V2 Catalog API on our DevCenter here: https://developer.bigcommerce.com/legacy/v2-products/v2-v3

The capability you describe is added with the V3 Catalog API, and you can follow progress for the open issue to upgrade our Python API tool here: https://github.com/bigcommerce/bigcommerce-api-python/issues/56

obrien-k avatar May 08 '20 19:05 obrien-k