cURL returns 406 Not Acceptable

Topic summary

  • Problem: Updating a product via Shopify’s Admin REST API (version 2021-10) using cURL returned HTTP 406 Not Acceptable.

  • Request details: A PUT request was sent with a JSON body (id and title), including headers X-Shopify-Access-Token and Content-Type: application/json.

  • Diagnosis: The endpoint path contained a typo—used the singular “product” instead of the correct plural “products” in the URL.

  • Resolution/status: Correcting the path to /admin/api/2021-10/products/{id}.json resolved the error. No further issues reported; discussion concluded.

Summarized with AI on February 21. AI used: gpt-5.

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 :slightly_smiling_face: )

What am I doing wrong?

Arghh,

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

Sorry guys for disturbing.