Skip to main content

I am using the Ruby API and the following code gets an error:

" (Custom attribute 'kamil_attribute_console' does not exist)"

 

user_id = 1

intercom_query = intercom.contacts.search('query': {'field': 'external_id', 'operator': '=', 'value': "#{user_id}"})

contact = intercom_query.first

contact.custom_attributes = {"kamil_attribute" => "here-iam-update-me"}

intercom.contacts.save(contact)

 

 

Hello @kamil c​ ,

 

To create contact attribute, go to Intercom Settings -> WorkspaceName Data -> People data -> Click on "Create attribute" button.

 

attribute 

attribute-2 

I hope this will be helpful, let me know if you have any further questions about this topic.


Reply