Problem updating product tags

Howdy everybody, i’m trying to update a product’s tag using shopify rest API (2021-10) with private app credential, shopify is returning sucess (200 ok) but the update doesnt happen. Current product tags are:

90+, 90+|90+, 91+, 91+|91+, 92+, 92+|92+, Argentina, Argentina|Argentina, Cabernet Sauvignon, Cabernet Sauvignon|Cabernet Sauvignon, Default Title, Descorchados, Descorchados|Descorchados, Entrega Imediata, Mendoza, Mendoza|Mendoza, Monovarietal, Monovarietal|Monovarietal, Riccitelli, Riccitelli|Riccitelli, Seller: Winebrands, Tinto, Tinto|Tinto, Vinho, Vinho|Vinho, Winebrands, Winebrands|Winebrands

And I’m trying to update to:

Tinto|Tinto,Tinto,Winebrands|Winebrands,Winebrands,Monovarietal|Monovarietal,Monovarietal,Vinho|Vinho,Vinho,90+|90+,90+,Riccitelli|Riccitelli,Riccitelli,92+|92+,92+,92|92,92,91+|91+,91+,Argentina|Argentina,Argentina,Descorchados|Descorchados,Descorchados,Cabernet Sauvignon|Cabernet Sauvignon,Cabernet Sauvignon,Mendoza|Mendoza,Mendoza,Vinho,Winebrands,Default Title,Entrega Imediata,Seller: Winebrands

The difference between the two is that I am adding the tags ‘92|92’ and ‘92’. Even performing the PUT by postman and getting success as a return, the tags are not added to the product. This happen for other products too, but only for some tags. I tried adding another tag, for example ‘Test’, and it worked.

Thank you for any help.

Hi :waving_hand:

tldr; using symbols in your tags can lead to unintended functionality

From the tag documentation

When creating tags you should use only ordinary letters, numbers, and the hyphen (-) in your tags. Avoid accented characters and other symbols.

Although you can create tags that use some special characters, they might not work as you expect.

Example: Suppose you have a condition for an automated collection of Product tag is equal to red-new. All products that have the following tags are also included in the collection: red_new, red+new, red&new.

This looks to be the similar behaviour that you are seeing. When you are adding 92 and 92+ already exists they appear to be seen as equal and the 92 is not added.

Hope this helps! :blush: