Properties that are NULL are not retrieve - why?

contacts

#1

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


#2

@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