APIs & Integrations

Non applicable

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

Résolue

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 Votes
1 Solution acceptée
cbarley
Solution
Ancien salarié HubSpot
Ancien salarié HubSpot

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

Résolue

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

Voir la solution dans l'envoi d'origine

0 Votes
2 Réponses
Non applicable

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

Résolue

ok, Thanks [Connor_Barley]

cbarley
Solution
Ancien salarié HubSpot
Ancien salarié HubSpot

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

Résolue

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 Votes