cURL returns 406 Not Acceptable

dusan_subic
Visitor
2 0 0

Hi, 

 

I have an issue with calling product update API with cURL. It returns "406 Not Acceptable"

I am doing as is written on 

https://shopify.dev/api/admin-rest/2021-10/resources/product#put-products-product-id

 

Here is my call (without URL and access-token)

curl -X PUT "https://{page-url}/admin/api/2021-10/product/6697843982393.json" -LvA "Mozilla" -d '{"id":6697843982393,"title":"New product title"}' -H "X-Shopify-Access-Token: {access-token}" -H "Content-Type: application/json"

(in my call i use access-token and page-url as should be 🙂 )

What am I doing wrong?

Reply 1 (1)

dusan_subic
Visitor
2 0 0

Arghh,

 

i made typo mistake ... it should be .../products/...

 

Sorry guys for disturbing.