404 error while updating Product inventory by rest API Magento 2.3.1
-
15-04-2021 - |
Question
I am trying to integrate Magento 2.3.1 with Linnworks, All the api calls are working fine expect the CatalogInventory.
When we try to update the product inventory using rest
PUT https://sitename.com/rest/default/V1/products/:productSku/stockItems/:itemId
its showing 404: Not Found
Anyone please help me on this..
Thanks in Advance..
La solution
We have fixed a similar issue by adding the following in .htaccess file inside public_html
<Limit GET POST PUT OPTIONS>
Require all granted
</Limit>
<LimitExcept GET POST PUT OPTIONS>
Require all denied
</LimitExcept>
Please make sure the Apache Module mod_headers is enabled mod_headers
Licencié sous: CC-BY-SA avec attribution
Non affilié à magento.stackexchange