Hello all,
The API does not appear to support multi-select fields when values contain spaces. There’s nothing in the UX or front-end that prevents the use of spaces, so it appears to be a bug or oversight in the API implementation.
For example, I have a multi-select field called ‘food_options’ that supports the following values: “Complimentary breakfast buffet,Complimentary snacks,Complimentary cold buffet,Complimentary hot buffet” among others.
Any attempt to update this field fails with:
{
"code": "rest_invalid_param",
"message": "Invalid parameter(s): food_options",
"data": {
"status": 400,
"params": {
"food_options": "food_options value \"Complimentary\" is not one of Complimentary breakfast buffet, Complimentary snacks, Complimentary cold buffet, Complimentary hot buffet, Complimentary soups, Complimentary finger food, Complimentary cooked-to-order meals, Complimentary full service restaurant, Food for sale."
}
}
}
I looked at the code and noticed that it does split strings on spaces regardless of other separators. However fixing the split does not help as there are deeper dependencies that do not support spaces. Please advise.
Thanks,
Patrick