VaricoKon Posted July 19, 2017 Share Posted July 19, 2017 Hi,I use PrestyShop 1.7, and I have problem with PUT method, witch referring to API. GET and POST methods works properly, but when I try send PUT request I always get this error:<H1>400 Bad Request</H1> Your browser sent a request that this server could not understand.I try add quantity to some product, to adres /api/stock_availables/id. XML which I try to send, looks like this:<?xml version="1.0" encoding="UTF-8"?><root><stock_available><depends_on_stock>0</depends_on_stock><id>1</id><id_product>1</id_product><id_product_attribute>0</id_product_attribute><id_shop>1</id_shop><id_shop_group>0</id_shop_group><out_of_stock>2</out_of_stock><quantity>1799</quantity></stock_available></root>Every other PUT query to other addreses answered the same error. What could be a problem? The xmxl format? If yes how should looks corect xml? I tried lot of things but nothing helped ;( If anyone know how can I fix this problem?Any help would be greatly appreciated.thanks Link to comment Share on other sites More sharing options...
vosicz Posted September 10, 2017 Share Posted September 10, 2017 Same problem here....looking for answer Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now