Create a role
POST
required scopes: contextual:roles:create
jwtheader
AuthorizationBearer <JWT>application/json- body
name*stringLength
1 <= lengthdescription?stringpermissions*array<string>system*booleanDefault
falsemaxUsers?numberapplication/json- response
id*stringLength
1 <= lengthname*stringLength
1 <= lengthdescription?stringpermissions*array<string>system*booleanDefault
falsemaxUsers?number_metaData*curl -X POST 'https://auth.your-tenant-id.my.contextual.io/api/v1/roles' \ -H 'Content-Type: application/json' \ -d '{ "name": "string", "permissions": [ "string" ], "system": false}'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" }}