API - Removing applied tags, applies tags instead

When trying to remove applied tags from contacts via the API it instead applies the tags that are trying to be removed, so the contact ends up having 2 of the same tag when it should have the original tag removed.
I have tested this for both versions of the REST API.
The endpoints I used are:
V1:
https://developer.infusionsoft.com/docs/rest/#tag/Contact/operation/removeTagsFromContactUsingDELETE
https://developer.infusionsoft.com/docs/rest/#tag/Tags/operation/removeTagFromContactIdsUsingDELETE

V2:
https://developer.infusionsoft.com/docs/restv2/#tag/Tags/operation/removeTagsUsingPOST

These all returned successful 204 responses. This should remove the applied tags but for some reason these endpoints are applying the tag.

Hi @Thomas_Sultana, I tested this on my end and couldn’t reproduce the behavior you’re describing. Both the v1 and v2 endpoints are working as expected and correctly remove the applied tags.

Here’s an example using the v2 endpoint to remove a tag from multiple contacts:

curl -X POST "https://api.infusionsoft.com/crm/rest/v2/tags/103/contacts:removeTags" \
  -H "Authorization: Bearer redacted" \
  -H "Content-Type: application/json" \
  -d '{
    "contact_ids": [41282, 36149]
  }'

If you’re still seeing unexpected behavior, please double check that:

  • The tag ID is correct
  • The contact IDs being sent in the request are correct

If you can share a specific request example, I’m happy to take another look.