How to assign multiple values to a multiple checkboxes property using contact's create or update api

SOLVE
pritamgb
Member

I am using contact's create or update API to update the information of a contact. Also, I have created a custom property which is a multiple checkboxes property. I want to assign multiple values to this field using API. How I can achieve that?

 

Example:

custom property name:           abc_xyz

values: pqr, efg, uvw, etc.

 

Lets say I want to assign pqr, uvw to property abc_xyz.

0 Upvotes
1 Accepted solution

Accepted Solutions
Willson
Solution
HubSpot Employee

Hey @pritamgb 

 

You can send the selected options as strings with each option separated by a semi-colon.

{
"property_name":"internal_value1;internal_value2"
}

This would then update to show multiple values per the multi-checkbox selection.

 

I hope this helps!

Product Expert | Customer Support
HubSpot

View solution in original post

1 Reply 1
Willson
Solution
HubSpot Employee

Hey @pritamgb 

 

You can send the selected options as strings with each option separated by a semi-colon.

{
"property_name":"internal_value1;internal_value2"
}

This would then update to show multiple values per the multi-checkbox selection.

 

I hope this helps!

Product Expert | Customer Support
HubSpot

View solution in original post