APIs & Integrations

j_754
Member

trying to create a ruby integration, but keep getting erros.

SOLVE

properties = {
"first_name": "bob",

"last_name": "bobson"
}

body = { properties: properties }
api_response = api_client.crm.contacts.basic_api.update(contact_id: 1, body: body)
puts api_response

 

"Property values were not valid"

 

No matter what property i use it returns a property not valid.

 

what are the properties that I can update?

1 Accepted solution
zach_threadint
Solution
Guide

trying to create a ruby integration, but keep getting erros.

SOLVE

Hi @j_754 👋

 

You'll need to make sure you're referencing the correct internal property names. Relating to your example, HubSpot's standard internal names for these properties are "firstname" and "lastname" (i.e. not separated by underscore). You might like to consider reviewing HubSpot's Properties API documentation. You can also find the internal names within HubSpot's web UI via Settings > Properties > {Property} > "</>" symbol at top-right of screen.

 

Screenshot 2024-02-24 at 10.53.01.png

 

I hope this proves useful. Please let me know if you have any follow-up questions.

All the best,

Zach

--

Zach Klein
HubSpot Integrations & App Developer
Meanjin / Brisbane, Australia



Say g'day


If my post helped answer your query, please consider marking it as a solution.


View solution in original post

1 Reply 1
zach_threadint
Solution
Guide

trying to create a ruby integration, but keep getting erros.

SOLVE

Hi @j_754 👋

 

You'll need to make sure you're referencing the correct internal property names. Relating to your example, HubSpot's standard internal names for these properties are "firstname" and "lastname" (i.e. not separated by underscore). You might like to consider reviewing HubSpot's Properties API documentation. You can also find the internal names within HubSpot's web UI via Settings > Properties > {Property} > "</>" symbol at top-right of screen.

 

Screenshot 2024-02-24 at 10.53.01.png

 

I hope this proves useful. Please let me know if you have any follow-up questions.

All the best,

Zach

--

Zach Klein
HubSpot Integrations & App Developer
Meanjin / Brisbane, Australia



Say g'day


If my post helped answer your query, please consider marking it as a solution.