GET
/
workspace
/
{workspaceId}
/
roles
curl --request GET \
  --url https://api.hyra.io/workspace/{workspaceId}/roles \
  --header 'Authorization: Bearer <token>'
{
  "group_roles": [
    {
      "id": "<string>",
      "name": "<string>",
      "rank": 123
    }
  ],
  "roles": [
    {
      "_id": "<string>",
      "group_roles": [
        "<string>"
      ],
      "manual_users": [
        "<string>"
      ],
      "name": "<string>",
      "permissions": [
        "<string>"
      ]
    }
  ]
}

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

workspaceId
string
required

Query Parameters

group
boolean

Response

200 - application/json
group_roles
object[]
roles
object[]
required