I am reopening a ticket concerning an issue we had some days ago while building an API and is still not fixed.
The former ticket opened by my colleague is the following one: About the Contacts category
This is the last status we received:
“this is the hash that I’m trying to post. All the properties are in our contacts data
{:properties=>
[{:property=>“email”, :value=>"claudiu.garba@gmail.com”},
{:property=>“firstname”, :value=>“Ollie”},
{:property=>“lastname”, :value=>“Pesto”},
{:property=>“company”, :value=>“Jimmy Pesto Pizza”},
{:property=>“language”, :value=>“en”},
{:property=>“new_ecratum_company_id”, :value=>3},
{:property=>“gender”, :value=>nil},
{:property=>“jobtitle”, :value=>nil}]}
and this is the result from the call
{“status”=>“error”,
“message”=>“Property values were not valid”,
“correlationId”=>“84dff80b-49dc-4cbb-bb9a-28d60e81001c”,
“validationResults”=>
[{“isValid”=>false, “message”=>“Property “language” does not exist”, “error”=>“PROPERTY_DOESNT_EXIST”, “name”=>“language”},
{“isValid”=>false, “message”=>“Property “new_ecratum_company_id” does not exist”, “error”=>“PROPERTY_DOESNT_EXIST”, “name”=>“new_ecratum_company_id”},
{“isValid”=>false, “message”=>“Property “gender” does not exist”, “error”=>“PROPERTY_DOESNT_EXIST”, “name”=>“gender”}],
“requestId”=>“eccd1766-1f71-443a-b745-40cf66d1d227”}
Could you please have a look at it and come back to us ?
Thanks,
Developer portals don’t have access to any of the tools that ‘regular’ (Marketing/CRM) portals do, but it appears that requests made to developer portals to create contacts will still work. I’ll touch base with the team about that, since I can see how it can be confusing when getting started.
The portal in that image is your developer portal. As a general rule, your developer portal is where your app lives, your production portal (if you have one) is your paid HubSpot portal where you conduct your marketing/sales, and your test portals (if you have any) are sandbox portals where you can test your application. Check out the Developer Doc below for more info on creating test portals:
I had the same problem. I found a hack around it. I created a form on hubspot and submitted the data through the forms endpoint. It’s not the most ideal way but works for what I wanted to do.
@carlos.botero@rozhok the original issue here was something specific to the account in question and not a general issue with the API or properties.
Do you have any more details for the issues you’re seeing? Are you able to see the properties you’re trying to set if you pull all of the properties through the API?
We are having the exact same problem. We created a “Property Group” and we added some custom properties to it with the intention of filling them via the API.
The problem is that when we send the request to update those custom properties, the API response is that the properties do not exist.
@dadams do you have any update on this issue? Is it there any information that you would need from us to find out more about the problem?
Those error messages indicate that those properties do not exist in the portal that you’re trying to create the contact in. You’ll need to create the properties in HubSpot before you’ll be able to create or update contacts using those properties.
It looks something like this: body: '{"status":"error","message":"This hapikey (...) does not have proper permissions! (requires all of [properties-settings-read])","correlationId":"...","requestId":"..."}' }