Skip to content

Commit 856352d

Browse files
author
Yaroslav Onischenko
committed
MAGETWO-36826: Unable to update stock items of product using API service
1 parent 3c66c19 commit 856352d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/CatalogInventory/etc/webapi.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<resource ref="Magento_CatalogInventory::cataloginventory"/>
1414
</resources>
1515
</route>
16-
<route url="/V1/stockItems/:productSku" method="PUT">
16+
<route url="/V1/products/:productSku/stockItems/:itemId" method="PUT">
1717
<service class="Magento\CatalogInventory\Api\StockRegistryInterface" method="updateStockItemBySku"/>
1818
<resources>
1919
<resource ref="Magento_CatalogInventory::cataloginventory"/>

0 commit comments

Comments
 (0)