I'm trying to achieve a bulk update of products via the Magento (2.4.4) API. I've been following a guide here Magento 2 : How to update qty and stock status using API for multiple products?

However, It seems somewhat counter intuitive. Individual products can be updated via a simple call to the /rest/all/V1/products/sku endpoint just by specifying the SKU but with the bulk update the article suggests that the endpoint /rest/all/async/bulk/V1/products/byProductSku/stockItems/byItemId must be used. I therefore need to specify the ItemId of the sku in the request and to do this I have to get each individual sku and read the response to retrieve the id.. I have MSI modules disabled as it's a complete pain..

Is there an endpoint that can handle bulk requests by just specifying only the sku? ( I've tried /rest/all/async/bulk/V1/products/bySku no joy..)

keep getting an internal server error response

  • potentially an issue with 2.4.4 github.com/magento/magento2/issues/35348 Jan 26 at 19:54
  • tried this fix github.com/magento/magento2/pull/… but still kicks back a bad request error? Jan 26 at 21:36
  • c# escaped example json "[ { \"product\": { \"sku\": \"1234\", \"price\": 12.99, \"extension_attributes\": { \"stock_item\": { \"qty\": 1.0 } } } }, { \"product\": { \"sku\": \"123456\", \"price\": 97.99, \"extension_attributes\": { \"stock_item\": { \"qty\": 3.0 } } } } ]" Jan 26 at 21:40
  • Bad Request was caused by Missing RabbitMQ.. Installed that and added queue configuration to env.php and up & running Jan 27 at 8:29


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.