REST API for Product Tag not working? (Update a product's tags)

colleenc
Shopify Partner
32 5 4

I am using Parabola to create an API call.

What I would like to do is delete a particular product tag from a list of products. I tried deleting the tag, which did not work, so I tried updating the tags as per the details here: https://shopify.dev/api/admin/rest/reference/products/product#update-2021-07

This failed with a 406 error. Can anyone see where I went wrong? Also, has anyone found a way to either reset the tags for a product or delete a given product tag?

I should point out that this product already has these tags, this action is simply reducing the tags by one tag. Not sure if the existing tags are causing the issue, but I wouldn't think it was.

 

{
  "data": {
    "product": {
      "id": 4814346682403,
      "tags": "Priceless, Samples"
    }
  },
  "method": "PUT",
  "url": "https://XXXXXX:XXXXXX@STORENAME.myshopify.com/admin/api/2021-07/products/4814246682803/.json"
}

 

 

Reply 1 (1)
csam
Shopify Staff
Shopify Staff
267 40 43

Hi @colleenc 

Can please provide the x-request-id you receive in the response to this call? 

Thanks!

CS | API Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog