Another property does not exist post. Property name is missing

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”},{“property”:“name”,“value”:“Company 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”}

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