How to create or update a contact, for a created property?

contacts

#1

I need to create or update an account, but not by email, but by another property.
In other words, to act by emal would be like this:

Https://api.hubapi.com/contacts/v1/contact/createOrUpdate/email/test@hubspot.com/?hapikey=demo

But I wanted to relate it like this:
Https://api.hubapi.com/contacts/v1/contact/createOrUpdate/phone/555-122-2323/?hapikey=demo

Or

Https://api.hubapi.com/contacts/v1/contact/createOrUpdate/identity_card/1104811482/?hapikey=demo


#2

@Jhonny_Zaruma You can use the search endpoint to get a contact by that custom property. Then once you have that contact you can read/parse it for the email address and use that to hit the create or update endpoint.


#3

@Jhonny_Zaruma I need to go back on my word on this. The search endpoint is going to look at name and email to find a match and not a custom property.


#4

Thanks for the info. And how could somehow do it with a property created.


#5

At the moment we do not have a search endpoint that would search any property.