How can I modify existing product tags on my website?

Here’s a workaround if you want to do one product at a time:

  1. Install the Shopify GraphiQL app making sure you include permissions to “write_products”.
  2. Using the Admin API on the latest version add the following query. In the tagsAdd mutation replace “8490061070631” with the product id you need and “My Tag” with the tag you’d like to add. Do similar for the tagsRemove mutation.
mutation TagsAddMutation {
  tagsAdd(id: "gid://shopify/Product/8490061070631", tags: "My Tag"){
    node {
      id
    }
    userErrors {
      field
      message
    }
  }
  tagsRemove(id: "gid://shopify/Product/8490061070631", tags: "my tag"){
    node {
      id
    }
    userErrors {
      field
      message
    }
  }
}
  1. Push the play button and if the query was successful it will output the product id.

Good luck

2 Likes