Creating a Contact with Properties with Multiple answers json API

SOLVE
New Contributor

Good Evening, 

 

Is it possible using the API to bullk update contacts with properties that are multi check box with more than one option. For example a custom property has been created which is multiselect checkbox with 5 options and I wish to update the contact with 4 out of the possible 5. The https://developers.hubspot.com/docs/methods/contacts/batch_create_or_update document shows the basics but just wanted an example of the json structure for the multiple properties.

 

Thanks in advance

Reply
0 Upvotes
1 Accepted solution

Accepted Solutions
Highlighted
Regular Advisor | Silver Partner

Hi @Esco_Developers 

 

I would try separating the values with a semicolons.

 

;value 1; value 2; value 3

I've read somewhere that the semicolon at the start appends the values and no semi colon at the start replaces the values BUT it's worth testing.

 

Reference:

https://knowledge.hubspot.com/articles/kcs_article/contacts/import-data-to-checkbox-properties

 

Have fun

Mike

2 Replies 2
Highlighted
Regular Advisor | Silver Partner

Hi @Esco_Developers 

 

I would try separating the values with a semicolons.

 

;value 1; value 2; value 3

I've read somewhere that the semicolon at the start appends the values and no semi colon at the start replaces the values BUT it's worth testing.

 

Reference:

https://knowledge.hubspot.com/articles/kcs_article/contacts/import-data-to-checkbox-properties

 

Have fun

Mike

New Contributor

Hi Mike, 

 

Thanks that is perfect. exactly as you described.