APIs & Integrations

SWorrall
Member

Json node is missing child properties

SOLVE

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?

0 Upvotes
2 Accepted solutions
Mike_Eastwood
Solution
Key Advisor | Gold Partner
Key Advisor | Gold Partner

Json node is missing child properties

SOLVE

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

View solution in original post

0 Upvotes
himanshurauthan
Solution
Thought Leader | Elite Partner
Thought Leader | Elite Partner

Json node is missing child properties

SOLVE

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,

Digital Marketing & Inbound Expert In Growth Hacking Technology

View solution in original post

0 Upvotes
2 Replies 2
himanshurauthan
Solution
Thought Leader | Elite Partner
Thought Leader | Elite Partner

Json node is missing child properties

SOLVE

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,

Digital Marketing & Inbound Expert In Growth Hacking Technology
0 Upvotes
Mike_Eastwood
Solution
Key Advisor | Gold Partner
Key Advisor | Gold Partner

Json node is missing child properties

SOLVE

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

0 Upvotes