Answered

Update "social_profiles" in contact

  • 2 September 2022
  • 4 replies
  • 61 views

  • New Participant
  • 2 replies

Hello, I'm using your API to create a contact.

In contact model there is a field called "social_profiles"

https://developers.intercom.com/intercom-api-reference/reference/contacts-model#social-profile-object

 

How can I update it using API?

I don't see an example here

https://developers.intercom.com/intercom-api-reference/reference/create-contact

Or here

https://developers.intercom.com/intercom-api-reference/reference/update-contact

icon

Best answer by Milan 5 September 2022, 09:31

View original

4 replies

Userlevel 4
Badge +5

You will use it in the same way you use Custom Attributes or Location attributes.

 

"social_profiles": {
"type": "list",
"data": [
{
"type": "social_profile",
"name": "Twitter",
"url": "https://twitter.com/intercomquot;
}
]
},

 

Can you provide me example body for request?

I have tried this

{
"role": "lead",
"name": "TEST",
"email": "test@gmail.com",
"social_profiles": {
"Twitter": "https://twitter.com/intercomquot;
}
}

And this

{
"role": "lead",
"name": "TEST",
"email": "test@gmail.com",
"social_profiles": {
"type": "list",
"data": [
{
"type": "social_profile",
"name": "Twitter",
"url": "https://twitter.com/intercomquot;
}
]
}
}

But I'm always getting empty response

"social_profiles": {
"type": "list",
"data": []
},

 

I got an answer from Intercom team

Hey there 👋
We are deprecating the use of social profiles in Intercom. I imagine when it's fully deprecated this will be removed from the API and docs.
It looks like we haven't removed that information from the contacts model, but you are no longer able to add this information to a profile, nor is there anywhere you can pull the data from.
Removing the ability to see this info on the user profile as well as removing the mention of social_profiles on the REST API are both currently tasks the product team have in progress 💻
You can still create a custom data attribute to use it as your custom social attributes for each social platform.
Hope this clarifies 😊 Let me know if you have any questions on this.

 

Userlevel 4
Badge +5

The first one is wrong as you do not have an attribute called "Twitter" (line 6).

 

The 2nd one seems to be ok, not sure why it is not working.

Reply