Wrong example in API documentation

Hello!

I'm building a Workplace Search java client and noticed there is a mistake in Workplace Search permissions API documentation:

{
  "user": "user1",
  "permissions": [
    "permission2",
    "permission3",
    "permission4"
  ],
  "user": "user2",
  "permissions": [
    "permission2",
    "permission4"
  ]
}

This is an invalid json object, the response body should be a json array, containing objects like the following:

[{
  "user": "user1",
  "permissions": [
    "permission2",
    "permission3",
    "permission4"
  ]
},
{
  "user": "user2",
  "permissions": [
    "permission2",
    "permission4"
  ]
}]
2 Likes

Thanks brunofarache.

I have submitted a pull-request to update our documentation for this API call. :smiley:

1 Like