Getting Bad Request when using Cloud Save Item-Batch Post

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:

POST: https://services.api.unity.com/cloud-save/v1/data/projects/{redacted}/environments/{redacted}/custom/abilities/item-batch

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?

Can I get an update on this from Unity Devs please?

In this body you seem to be missing the data key with that body as its actual value as the documentation says:

{
  "data": [
    {
      "key": "ItemKey",
      "value": {},
      "writeLock": "7b8920a57912509f6b5cbb183eb7fcb0"
    }
  ]
}