Get a role
GET
Returns one user role by its ID: name, role key, status and when it was last changed. Use Get features assigned to a role for its permissions.
BearerAuthheader
AuthorizationBearer <JWT>id*integerID of the record.
Format
int64OK
*/*- response
id?|Role ID. Set by the server.
Format
int64name*stringRole name, unique across the merchant. Required.
roleKey*stringStable key for the role, e.g. CASHIER. Upper-cased with spaces turned to underscores; built from the name when left blank.
status*stringRole status text. Defaults to active.
modifiedTime*stringWhen the role was last changed. Set by the server.
Format
date-timeExample Request
curl -X GET 'https://beta.iotoms.com/api/v1/management/roles/0'Example Response
{ "id": 0, "name": "string", "roleKey": "string", "status": "string", "modifiedTime": "2019-08-24T14:15:22Z"}