Skip to main content
Answered

Update "social_profiles" in contact

  • September 2, 2022
  • 4 replies
  • 105 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

Best answer by Milan

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.

View original
Did this topic help you find an answer to your question?

4 replies

Milan
Expert User ✨
Forum|alt.badge.img+5
  • Top Expert
  • 306 replies
  • September 3, 2022

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;
}
]
},

 


  • Author
  • New Participant
  • 2 replies
  • September 5, 2022

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": []
},

 


  • Author
  • New Participant
  • 2 replies
  • September 5, 2022

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.

 


Milan
Expert User ✨
Forum|alt.badge.img+5
  • Top Expert
  • 306 replies
  • Answer
  • September 5, 2022

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings