A user can only execute this action if he is a member of an autorizing role which has indirect roleManagement rights for the updated role.
accessBearerAuth In the value field below, fill in the access token. It has a 10 minutes validity period. A valid token can be obtained via the /accesstoken endpoint (call), AFTER authorization with refreshBearerAuth and the refresh token.
In: header
Id of the role which we want to update
0 <= valueapplication/json
TypeScript Definitions
Use the request body type in TypeScript.
application/json
application/json
application/json
application/json
curl -X PUT "https://example.com/v1/role/0" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "selfRights": { "roleManagement": true, "userManagement": true, "viewManagement": true, "deviceManagement": true, "reportManagement": true, "alarmManagement": true } }'{ "role": { "id": 0, "name": "string", "selfRights": { "roleManagement": true, "userManagement": true, "viewManagement": true, "deviceManagement": true, "reportManagement": true, "alarmManagement": true }, "userRights": { "roleManagement": true, "userManagement": true, "viewManagement": true, "deviceManagement": true, "reportManagement": true, "alarmManagement": true } }}Collect roles (alternative of GET /v1/role) POST
Get all (or some of) the roles of which a user is a member (either directly or indirectly)
Delete a member relation DELETE
A user can only execute this action if he is a member of an authorizing role which satisfies one of the following conditions: <ul> <li> The authorizing role has *direct or indirect* userManagement rights for the role to which a member is deleted </li> <li> The authorizing role has *indirect* roleManagement rights for the role to which a member is deleted </li> <li> The authorizing role is the role from which a member is removed, and the removed member is the user itself </li> </ul>
Role name