APIs & Integrations

Not applicable

Hub-spot update contact properties value by label name possible?

SOLVE

call api createorupdate api
https://api.hubapi.com/contacts/v1/contact/createOrUpdate/email/test@gmail.com

and pass this property value in this format :
{"properties":[{"property":"First Name","value":"Ankit Vyas"},{"property":"Email","value":"test@gmail.com"},{"property":"Contact owner","value":"989898980"},{"property":"Street Address","value":"Jodhpur, Rajasthan"}]}

this type of error are display::
{
"status": "error",
"message": "Property values were not valid",
"correlationId": "3027bda6-b316-4212-b021-853194718f10",
"validationResults": [
{
"isValid": false,
"message": "Property "contact owner" does not exist",
"error": "PROPERTY_DOESNT_EXIST",
"name": "contact owner"
},
{
"isValid": false,
"message": "Property "first name" does not exist",
"error": "PROPERTY_DOESNT_EXIST",
"name": "first name"
},
{
"isValid": false,
"message": "Property "street address" does not exist",
"error": "PROPERTY_DOESNT_EXIST",
"name": "street address"
}
],
"requestId": "b1a53b023d718ee177a9c276e0949925"
}

0 Upvotes
1 Accepted solution
cbarley
Solution
HubSpot Alumni
HubSpot Alumni

Hub-spot update contact properties value by label name possible?

SOLVE

Hi @Ankit, it is not possible to update contacts by their label. You must use the internal value with every HubSpot endpoint. You can find the internal values by going to the properties page (https://app.hubspot.com/property-settings/HUBID/) and clicking into a specific property. Or you can pull the internal values using this endpoint: https://developers.hubspot.com/docs/methods/contacts/v2/get_contacts_properties

View solution in original post

0 Upvotes
2 Replies 2
Not applicable

Hub-spot update contact properties value by label name possible?

SOLVE

ok, Thanks [Connor_Barley]

cbarley
Solution
HubSpot Alumni
HubSpot Alumni

Hub-spot update contact properties value by label name possible?

SOLVE

Hi @Ankit, it is not possible to update contacts by their label. You must use the internal value with every HubSpot endpoint. You can find the internal values by going to the properties page (https://app.hubspot.com/property-settings/HUBID/) and clicking into a specific property. Or you can pull the internal values using this endpoint: https://developers.hubspot.com/docs/methods/contacts/v2/get_contacts_properties

0 Upvotes