List roles

Retrieves a list of all existing roles

Responses
  • 200 Role list

    Array [

    _id
    string (Internal ID) required

    Object internal ID

    name
    string required

    The name of the role

    description
    string | null

    The description of the role

    permissions
    array of objects | null (Permission)

    The role's permissions

    ]

  • 204 No role defined or insufficient permissions
  • 401 Authentication error
  • 403 Forbidden action
  • 500 Unexpected internal server error