How to add/remove the same tag to multiple users via API? | Community
Skip to main content

How to add/remove the same tag to multiple users via API?

  • May 5, 2025
  • 1 reply
  • 0 views

Luka11

I've been looking at the API documentation on tags and how to a add them to users. Maybe I'm wrong, but I haven't seen if you can add or remove the same tag to multiple users. For example, if I need to add tag 'foo' to 20 users, can I do it with 1 API request?

1 reply

Greg29
  • May 6, 2025

Hi Luka! You could add tags to up to 100 users at once with the Update Many Users API, however you wont be able to remove the tags with this method. When updating tags directly with the Tags API, there are two methods that we use, “set” and “add”. “Set” replaces all the tags with whatever you pass it, “add” will preserve the current tags and then add on the new tags that you're passing. When you're using the Update Many Users API, it will only use “add” so there wouldn't be any way to remove them.