Discussions
ssue with Creating Clients via API - "Invalid value for badges, must be a JSON array"; error Message
I've been encountering an issue when attempting to create a client via the API. Specifically, I am consistently receiving an error related to the "badges" field, stating "Invalid value for badges, must be a JSON array," regardless of the format I use in the field.
Here is an example of the JSON body I am sending:
{
"id": "",
"name": "",
"badges": [
"badges_UUID";
],
"address": {}
}
It's important to note that the error consistently occurs, even when I try different formats for the "badges" field, whether it is a string or an array. Surprisingly, the API call is successful when the "badges" field is left empty.
If there are any specific requirements or changes needed in the API call, please provide guidance. Additionally, if there are any known issues or updates related to this matter, I would be grateful for that information.