How To Set a Select-Multiple Field Via API

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

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