APIs & Integrations

Esco_Developers
Member

Creating a Contact with Properties with Multiple answers json API

SOLVE

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

0 Upvotes
1 Accepted solution
Mike_Eastwood
Solution
Key Advisor | Gold Partner
Key Advisor | Gold Partner

Creating a Contact with Properties with Multiple answers json API

SOLVE

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

View solution in original post

2 Replies 2
Mike_Eastwood
Solution
Key Advisor | Gold Partner
Key Advisor | Gold Partner

Creating a Contact with Properties with Multiple answers json API

SOLVE

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

Esco_Developers
Member

Creating a Contact with Properties with Multiple answers json API

SOLVE

Hi Mike, 

 

Thanks that is perfect. exactly as you described.