iotoms Docs

Get features assigned to a role

GET
/api/v1/management/roles/{id}/features

Returns the features (permissions) a role currently has, plus the features it is allowed to have on the merchant's current plan, so you can show what can still be granted.

Authorization

BearerAuth
headerAuthorizationBearer <JWT>

Path Parameters

id*integer

ID of the record.

Formatint64

Response Body

OK

*/*
  1. response
roleId*integer

Role ID.

Formatint64
roleKey*string

The role's key, e.g. CASHIER.

roleName?|

The role's display name.

allowedFeatures*array<>

Features this role may be given on the merchant's current plan.

assignedFeatureCodes*array<string>

Codes of the features the role currently has.

Example Request
curl -X GET 'https://beta.iotoms.com/api/v1/management/roles/0/features'
Example Response
{  "roleId": 0,  "roleKey": "string",  "roleName": "string",  "allowedFeatures": [    {      "code": "string",      "name": "string",      "description": "string",      "category": "string"    }  ],  "assignedFeatureCodes": [    "string"  ]}