cancel
Showing results for 
Search instead for 
Did you mean: 

unable to update product->stockItem->quantity

unable to update product->stockItem->quantity

hey,
got a problem with updating product quantity: 
request: 
PUT https://XXXX/rest/default/V1/products/300.045-I-SSS/stockItems/4394
payload: 

{"stockItem":{
"is_qty_decimal" : true,
"is_in_stock":true,
"qty" : 10}}

request returns 200 and in payload 4394

bet when i retrieve data with GET quantity still is 0. but is_qty_decimal and is_in_stock properties got updated. Any ideas why is this happening?