Add permissions to a role
POST/api/v1/RolesRole/:roleId/Permission
Assigns permissions to a role by their IDs; permissions that the role already has, or that do not exist, are skipped. Terminate Session and Lock Session need Live Session Viewer, which can be sent in the same call. Adding Admin View Read Only also adds the Reporting permission.
Permission required: Administrator role.
Request
Responses
- 200
- 400
- 403
- 404
Returns the number of permissions added, including Reporting when it is added automatically.
The permissions could not be added, for example Terminate Session or Lock Session without Live Session Viewer.
The signed-in user does not have the required role, or the account has read-only administrator access.
The role does not exist.