Storyden
Roles

Role List

List all roles and their permissions.

GET/roles

List all roles and their permissions.

storyden-session<token>

In: cookie

Response Body

application/json

application/json

curl -X GET "https://example.com/roles"
{
  "roles": [
    {
      "id": "cc5lnd2s1s4652adtu50",
      "createdAt": "2019-08-24T14:15:22Z",
      "updatedAt": "2019-08-24T14:15:22Z",
      "deletedAt": "2019-08-24T14:15:22Z",
      "misc": {},
      "name": "string",
      "colour": "string",
      "permissions": [
        "CREATE_POST"
      ],
      "meta": {}
    }
  ]
}
{
  "type": "string",
  "title": "string",
  "detail": "string",
  "trace_id": "string",
  "metadata": {}
}