APIs & Integrations

No aplicable

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

resolver

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 Me gusta
1 Soluciones aceptada
cbarley
Solución
Exmiembro de HubSpot
Exmiembro de HubSpot

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

resolver

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

Ver la solución en mensaje original publicado

0 Me gusta
2 Respuestas 2
No aplicable

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

resolver

ok, Thanks [Connor_Barley]

cbarley
Solución
Exmiembro de HubSpot
Exmiembro de HubSpot

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

resolver

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 Me gusta