# How To Set a Select-Multiple Field Via API

**URL:** <https://forum.mautic.org/t/how-to-set-a-select-multiple-field-via-api/9584>\
**Category:** Product Support\
**Created:** [September 28, 2017, 1:36am UTC](https://forum.mautic.org/t/how-to-set-a-select-multiple-field-via-api/9584 "2017-09-28T01:36:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vortexhobbies](https://avatars.discourse-cdn.com/v4/letter/v/f04885/32.png) [@vortexhobbies](https://forum.mautic.org/u/vortexhobbies)\
**Post date:** [September 28, 2017, 1:36am UTC](https://forum.mautic.org/t/how-to-set-a-select-multiple-field-via-api/9584/1 "2017-09-28T01:36:11Z")

</div>

Does anyone know what format the Mautic API is expecting the data to be to set a Select-Multiple custom field?  
  
  
  
I have a custom field called “interests” with a type of Select-Multiple. I am trying to create a new contact via the API and I am trying to set that field to “Airplanes” and “Helicopters”.  
  
  
  
I can’t figure out what format Mautic wants it.  
  
  
  
In PHP I have tried:  
  
  
  
‘interests’ =\> ‘Airplanes|Helicopters’  
  
  
  
and like “tags” field is handled.  
  
  
  
‘interests’ =\> ‘Airplanes,Helicopters’  
  
  
  
Either way I keep getting an Error:  
  
“interests: This value is not valid.”  
  
  
  
Thank You,  
  
Jody

---

<div class="post-metadata">

**Author:** ![vortexhobbies](https://avatars.discourse-cdn.com/v4/letter/v/f04885/32.png) [@vortexhobbies](https://forum.mautic.org/u/vortexhobbies)\
**Post date:** [September 28, 2017, 1:36am UTC](https://forum.mautic.org/t/how-to-set-a-select-multiple-field-via-api/9584/2 "2017-09-28T01:36:11Z")

</div>

Does anyone know what format the Mautic API is expecting the data to be to set a Select-Multiple custom field?

I have a custom field called “interests” with a type of Select-Multiple. I am trying to create a new contact via the API and I am trying to set that field to “Airplanes” and “Helicopters”.

I can’t figure out what format Mautic wants it.

In PHP I have tried:

‘interests’ =\> ‘Airplanes|Helicopters’

and like “tags” field is handled.

‘interests’ =\> ‘Airplanes,Helicopters’

Either way I keep getting an Error:  
“interests: This value is not valid.”

Thank You,  
Jody
