Hi.
I am sending this request with Restman (no matter I use http or https, I get the same response, and using basic authentication) becasue I want to update the stock of my products through the API
URL: http://farmaciasbaratas.com/api/stock_availables
with this xml in the response
<?xml version="1.0" encoding="UTF-8" ?>
<prestashop xmlns:xlink="http://www.w3.org/1999/xlink">
<stock_availables>
<stock_available>
<id>
<![CDATA[1062]]>
</id>
<id_product_attribute><![CDATA[0]]></id_product_attribute>
<quantity>
<![CDATA[1]]>
</quantity>
<depends_on_stock><![CDATA[0]]></depends_on_stock>
<out_of_stock><![CDATA[2]]></out_of_stock>
</stock_available>
</stock_availables>
</prestashop>
I always get 405 method not allowed when POST. I don't know why, as I granted all permissions for products and stock_availables in the webservice admin page of my site. I was wondering perhaps not using all required files, but I checked in the documentation (https://devdocs.prestashop.com/1.7/webservice/resources/stock_availables/), and I think nothing is missing.
If I use GET instead, everything works fine. As I said, I granted all permissions.
Any idea what could be going on?
Thank you.