Question

Docs for attaching tag to a contact seems to be incomplete

  • 23 September 2022
  • 1 reply
  • 20 views

Trying to attach a tag to multiple contacts by following the API docs but it doesn't work.

How am I supposed to pass the tag id?

 

When I tag individual user and pass the

{ "id": "tag-id" }

the API returns

"errors": [
{
"code": "not_found",
"message": "Resource Not Found"
}
]

despite of the tag existing. Confirmed with get all tags API call.


1 reply

Userlevel 4
Badge +5

Hey @tomek​ Racheal from the Support Engineer team here 👋

 

To tag multiple users using the API you will want to use the endpoint:

https://api.intercom.io/tags/code>

And insert a users array in the body:

{
"name" : "Testing Tag",
"users": [
{
"id": "12345"
},
{
"id": "123456"
}
]
}

It looks like our docs are missing the tag name, thanks for flagging! I'll let the team know to get that updated. 👍

Reply