How to Update Product Quantity in Magento 2 via API

Endpoint:

PUT https://your-magento-site.com/rest/V1/products/SHE-211359BK/stockItems/2911

Headers:

Authorization: Bearer {your_token}
Content-Type: application/json

Body:

{
  "stock_item": {
    "qty": 50,
    "is_in_stock": true,
    "manage_stock": true,
    "use_config_manage_stock": false
  }
}

Leave a comment

Your email address will not be published. Required fields are marked *