# Add/Remove Tags from API

**URL:** <https://forum.mautic.org/t/add-remove-tags-from-api/4527>\
**Category:** Ideas and Feature Requests\
**Created:** [July 16, 2016, 1:45pm UTC](https://forum.mautic.org/t/add-remove-tags-from-api/4527 "2016-07-16T13:45:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![lsan](https://avatars.discourse-cdn.com/v4/letter/l/c67d28/32.png) [@lsan](https://forum.mautic.org/u/lsan)\
**Post date:** [July 16, 2016, 1:45pm UTC](https://forum.mautic.org/t/add-remove-tags-from-api/4527/1 "2016-07-16T13:45:51Z")

</div>

Hey guys, this is implemented? I couldn’t find it in API docs. Is it planned?

---

<div class="post-metadata">

**Author:** ![lsan](https://avatars.discourse-cdn.com/v4/letter/l/c67d28/32.png) [@lsan](https://forum.mautic.org/u/lsan)\
**Post date:** [July 16, 2016, 1:45pm UTC](https://forum.mautic.org/t/add-remove-tags-from-api/4527/2 "2016-07-16T13:45:51Z")

</div>

Hey guys, this is implemented? I couldn’t find it in API docs. Is it planned?

---

<div class="post-metadata">

**Author:** ![alanmosko](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/alanmosko/32/40_2.png) [@alanmosko](https://forum.mautic.org/u/alanmosko)\
**Post date:** [July 29, 2017, 6:15pm UTC](https://forum.mautic.org/t/add-remove-tags-from-api/4527/3 "2017-07-29T18:15:21Z")

</div>

[https://github.com/mautic/mautic/issues/3907](https://github.com/mautic/mautic/issues/3907)

---

<div class="post-metadata">

**Author:** ![hfuschini](https://avatars.discourse-cdn.com/v4/letter/h/57b2e6/32.png) [@hfuschini](https://forum.mautic.org/u/hfuschini)\
**Post date:** [November 28, 2017, 7:04pm UTC](https://forum.mautic.org/t/add-remove-tags-from-api/4527/4 "2017-11-28T19:04:49Z")

</div>

Hey Isan!

This link above works great. Just complementing the solution with a problem I had.

When passing tags trought the JS pixel we need to send them as a string like:

`mt('send', 'pageview',{
                tags:"beautiful"
});`

In this case, putting a minus sign in front of it like this

`mt('send', 'pageview',{
                tags:-"beautiful"
});`

Causes an error. (Same if the string was a variable).

But it works if you send it like this:

`mt('send', 'pageview',{
                tags:"-beautiful"
});`

Hope it helps!

---

<div class="post-metadata">

**Author:** ![ekke](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ekke/32/296_2.png) [@ekke](https://forum.mautic.org/u/ekke)\
**Post date:** [July 16, 2021, 8:13am UTC](https://forum.mautic.org/t/add-remove-tags-from-api/4527/5 "2021-07-16T08:13:43Z")

</div>

Closed on July 16, 2021, 8:13am UTC

-implemented /EG-  
[https://developer.mautic.org/#tags](https://developer.mautic.org/#tags)  
[https://developer.mautic.org/#edit-contact](https://developer.mautic.org/#edit-contact)
