Skip to Content
Docs

Get role by id

GET
/roles/{roleId}

required scopes: contextual:roles:read

Authorization

jwt
headerAuthorizationBearer <JWT>

Path Parameters

Header Parameters

Response Body

application/json
  1. response
id*string
Length1 <= length
name*string
Length1 <= length
description?string
permissions*array<string>
system*boolean
Defaultfalse
maxUsers?number
_metaData*
Example Request
curl -X GET 'https://auth.your-tenant-id.my.contextual.io/api/v1/roles/{roleId}'
Example Response
{  "id": "string",  "name": "string",  "description": "string",  "permissions": [    "string"  ],  "system": false,  "maxUsers": 0,  "_metaData": {    "id": "string",    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z"  }}