Hi everyone,
Not sure if this is a bug or I am doing something wrong, I am sending a “Set Custom Item Batch” request as per the API documentation here: Unity Services Web API docs
It seems to return an error related to array handling?
{
"type": "problems/basic",
"title": "Error",
"status": 400,
"detail": "json: cannot unmarshal array into Go value of type server.request",
"instance": null,
"code": 1002
}
My request is quite simple and it has only 3 keys, the request URL with redacted information about projectID and Environment ID is as follows:
Even with a simple body as this:
[
{
"key": "test_batch_ability1",
"value": {
"abilityId": 1101
}
},
{
"key": "test_batch_ability2",
"value": {
"abilityId": 1102
}
},
{
"key": "test_batch_ability3",
"value": {
"abilityId": 1103
}
}
]
I still get a failure with the error above, am I doing something wrong or the API is not really accepting receiving the request correctly?