APIs & Integrations

maulanariziq
Member

Update more than 1 contact's property

SOLVE

Hallo All,

 

I have read this question about how to update contact's property using API crm v3 https://community.hubspot.com/t5/APIs-Integrations/Updating-contact-property-using-python-API/m-p/44....

 

But, the problem is how to update more than 1 field/property? because those article only mention and give demo for 1 property only in payload variable. Thanks

0 Upvotes
1 Accepted solution
ChehakWadhdwa
Solution
Member | Diamond Partner
Member | Diamond Partner

Update more than 1 contact's property

SOLVE

hey @maulanariziq 

 there is some syntax error n payload 

try this one 

 

payload='{
"properties": {
"trigger_id":1,
"trigger_name":"test123"
}
}'

also send the payload in the JSON format , may i know which language are you using for it ?

 

View solution in original post

0 Upvotes
4 Replies 4
ChehakWadhdwa
Member | Diamond Partner
Member | Diamond Partner

Update more than 1 contact's property

SOLVE

hi @maulanariziq 

to update multiple properties just send the payload object with multiple property like this =

payload="{

"properties":"{

"name":"changedname",

"age":"23"

}"

}"

for ref = https://developers.hubspot.com/docs/api/crm/contacts

 

update.png

 

 

0 Upvotes
maulanariziq
Member

Update more than 1 contact's property

SOLVE

I use this but still got error, 

<Response [400]>

payload="""{
"properties":"{
"trigger_id":1,
"trigger_name":"test123"
}"
}"""

response = requests.request("PATCH", url, data=payload.encode("utf-8"), headers=headers)
print(response)

0 Upvotes
ChehakWadhdwa
Solution
Member | Diamond Partner
Member | Diamond Partner

Update more than 1 contact's property

SOLVE

hey @maulanariziq 

 there is some syntax error n payload 

try this one 

 

payload='{
"properties": {
"trigger_id":1,
"trigger_name":"test123"
}
}'

also send the payload in the JSON format , may i know which language are you using for it ?

 

0 Upvotes
maulanariziq
Member

Update more than 1 contact's property

SOLVE

Thank you, It works!

0 Upvotes