Json node is missing child properties

I’m trying to update contact properties by email. I’m sending the request through Hubspot3 in Python. The data looks like this:

{"properties": [{"property": "trial_activation_date", "value": "1649707431078.916"}]}

I’m refrencing this page for data structure.

The line of code I’m using is this:

result = client.contacts.create_or_update_by_email(email="xxx@xxx.com", data=data)

The problem is that I recieve back an error from the API saying I’m missing child properties in the Json node. Any idea on what I’m doing wrong?

Hi @SWorrall

I’d try sending the date in Microseconds (without the decimal place).

1649707431078

While it should work, and the error message isn’t helpful, my guess would be your timestamp.

Did it work?

Mike

Hello @SWorrall,

The requested data is correct maybe there is some issue with the API, if you want to update the existing contact then you can use this API as well, it will update the contact on the basis of VID and you can get VID from email using this API.

Hope it will help you out

Regards,