Update products quantity
PUT {{baseUrl}}/products/quantity
Service urls:
http://yourdomain.com/api/rest_admin/products/quantity
OR
http://yourdomain.com/index.php?route=rest/product_admin/productquantity
If you want to update product option's quantity:
[
{
product_id:34,
product_option:[
{
product_option_value:[
{
product_option_value_id:21,
quantity:10
},
{
product_option_value_id:22,
quantity:11
},
{
product_option_value_id:23,
quantity:20
}
]
}
]
}
]
Request Body
[{"product_id"=>"<integer>", "quantity"=>"<integer>"}, {"product_id"=>"<integer>", "quantity"=>"<integer>"}]
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
RESPONSES
status: OK
""