API Contact Update


I started exporting some users from another app in hubspot. Is it possible to have a property set in a way so that it is updated from API call only if it is null?
I am managing a long list of users so having another call just to check if that property is set or not is not a valid solution.
If anyone has an idea please let me know.


Hi @Catalin_Olteanu, happy to help. Which HubSpot endpoint are you using / which method? Can you shed more light on what exactly you're attempting to do? Are you exporting HubSpot Contacts to this new CRM, or are you exporting contacts from another CRM into Hubspot?

If you're looking to import contacts into HubSpot, this endpoint might be the one you're looking for: https://developers.hubspot.com/docs/methods/contacts/batch_create_or_update


Yes maybe I was a little vague. I have an external system that collects users (lets call it A). What I am doing is export those users from system A to hubspot.
You are right this is the method that I am using: https://developers.hubspot.com/docs/methods/contacts/batch_create_or_update
My question is if it is possible to have a property set so that it is updated from system A if and only if it is null in hubspot.
I don't want to do another request just to check if the property is set or not.


Hi @Catalin_Olteanu, no, unfortunately that doesn't exist with our APIs. There's no inherent logic built into our endpoints. You'd have to handle that type of logic on your server to pull contacts from HubSpot, check against your system, then push contacts into HubSpot if they don't exist there.