APIs & Integrations

Nicht anwendbar

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

lösung

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 Akzeptierte Lösung
cbarley
Lösung
HubSpot-Alumnus/Alumna
HubSpot-Alumnus/Alumna

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

lösung

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

Lösung in ursprünglichem Beitrag anzeigen

0 Upvotes
2 Antworten
Nicht anwendbar

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

lösung

ok, Thanks [Connor_Barley]

cbarley
Lösung
HubSpot-Alumnus/Alumna
HubSpot-Alumnus/Alumna

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

lösung

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