GET
/
api
/
roles
/
{id}
{
  "id": 1,
  "slug": "admin",
  "name": "Administrator",
  "description": "Administrator role with all permissions",
  "predefined": false,
  "permissions": [
    {
      "ability": "read",
      "subject": "item",
      "value": true
    },
    {
      "ability": "edit",
      "subject": "item",
      "value": false
    }
  ]
}

Headers

Authorization
string
required

Value must be 'Bearer <token>' where <token> is an API key prefixed with 'bc_' or a JWT token.

Example:

"Bearer bc_1234567890abcdef"

organization-id
string
required

Required if Authorization is a JWT token. The organization ID to operate within.

Path Parameters

id
number
required

Role ID

Response

200 - application/json

Role details

The response is of type object.