APIs & Integrations

saar1
Membre

Properties that are NULL are not retrieve - why?

Hi,
i’m making an API call: https://api.hubapi.com/contacts/v1/lists/all/contacts/all?hapikey=xxxxxxxx&property=

However i’ve noticed that whenever these properties are null it will not appear in JSON returned, even not as NULL. Why is that? and how can i change it??

Oh and one more thing, how can i make an array of properties i want to retrieve in the URL? is it something like:
&property=[name1,name2] ?

Many thanks,
Saar

0 Votes
1 Réponse
Dadams
HubSpot Employee
HubSpot Employee

Properties that are NULL are not retrieve - why?

@saar1 contacts only store data for properties that have had a value, so properties will only be included in the response data if there is a value for the property. There is not a way to force the response to include null values for properties that have never been set for a contact.

You can include the property= parameter multiple times to get multiple properties:

&property=name1&property=name2

0 Votes