APIs & Integrations

適用対象外

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

解決

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 いいね!
1件の承認済みベストアンサー
cbarley
解決策
元HubSpot社員
元HubSpot社員

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

解決

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 いいね!
2件の返信
適用対象外

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

解決

ok, Thanks [Connor_Barley]

cbarley
解決策
元HubSpot社員
元HubSpot社員

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

解決

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 いいね!