Error when sending array as field values

Hello There!

Around a month ago I was able to send an array as follows using the form API v3:

{“name”: “utm_medium”,“value”: [“cpc”,“ppc”]}

I’m not sure when the API changed, but now I’m receiving the following error:

Invalid input JSON on line 1, column 41: Cannot deserialize value of type `java.lang.String` from Array value (token `JsonToken.START_ARRAY

I already fixed this by sending a string instead of an array.

My team wants to have an idea of how many leads we could have lost, so I would appreciate it if somebody had info about when this change happened.

Hi, there. Thanks for your questions. Let’s see if we can get the converstaion going — hey @Teun @miljkovicmisa, do you have any feedback for @JairoPy?

Thank you very much! — Jaycee

Was there ever a solution to this? I am running into the same issue on a Deals Search and can’t figure out how to get around it.

You can pass multiple values like this:

"value": "cpc;ppc"

It’s called enumeration fields.