APIs & Integrations

casiopeita
Participant

Another property does not exist post. Property name is missing

SOLVE

I don't get the property name that does not have the correct values.

 

I am sending a post request to:

https://api.hubapi.com/companies/v2/companies/?hapikey=

Payload:

{"properties":[{"property":"marketing_tracking_asset_types","value":"Trailers;Snow Plows;Other"},{"property":"marketing_features_desired","value":"Vehicle Diagnostics;Dispatch"},{"property":"marketing_challenges","value":"Cutting Fuel Costs;Eliminating Aggressive Driving;Other"},{"property":"notes","value":"Some notes"},{"property":"website","value":"https://www.test.com"},{"property":"currency","value":"CAD"},{"property":"phone","value":"5551231234... ABC"}]}

 

Response:

{"validationResults":[{"isValid":false,"message":"Property \"\" does not exist","error":"PROPERTY_DOESNT_EXIST","name":""},{"isValid":false,"message":"Property \"\" does not exist","error":"PROPERTY_DOESNT_EXIST","name":""},{"isValid":false,"message":"Property \"\" does not exist","error":"PROPERTY_DOESNT_EXIST","name":""},{"isValid":false,"message":"Property \"\" does not exist","error":"PROPERTY_DOESNT_EXIST","name":""},{"isValid":false,"message":"Property \"\" does not exist","error":"PROPERTY_DOESNT_EXIST","name":""},{"isValid":false,"message":"Property \"\" does not exist","error":"PROPERTY_DOESNT_EXIST","name":""},{"isValid":false,"message":"Property \"\" does not exist","error":"PROPERTY_DOESNT_EXIST","name":""},{"isValid":false,"message":"Property \"\" does not exist","error":"PROPERTY_DOESNT_EXIST","name":""}],"status":"error","message":"Property values were not valid","correlationId":"14dc2400-8a43-456a-a9af-ad61c8323278","requestId":"6611deab-69e2-4219-b581-d837b087e225"}

0 Upvotes
1 Accepted solution
Mike_Eastwood
Solution
Key Advisor | Gold Partner
Key Advisor | Gold Partner

Another property does not exist post. Property name is missing

SOLVE

Hi @casiopeita 

 

It's a HubSpot API gotcha!

 

Contacts have "property", "value" pairs.

Companies have "name", "value" pairs.

 

So, if you change the key to name, from property, it should work, for example:

 

{"name":"marketing_challenges","value":"Cutting Fuel Costs;Eliminating Aggressive Driving;Other"},

Have fun

Mike

View solution in original post

0 Upvotes
1 Reply 1
Mike_Eastwood
Solution
Key Advisor | Gold Partner
Key Advisor | Gold Partner

Another property does not exist post. Property name is missing

SOLVE

Hi @casiopeita 

 

It's a HubSpot API gotcha!

 

Contacts have "property", "value" pairs.

Companies have "name", "value" pairs.

 

So, if you change the key to name, from property, it should work, for example:

 

{"name":"marketing_challenges","value":"Cutting Fuel Costs;Eliminating Aggressive Driving;Other"},

Have fun

Mike

0 Upvotes