Role
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: header
0 <= valueapplication/json
TypeScript Definitions
Use the request body type in TypeScript.
application/json
curl -X PUT "https://api.eniris.be/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 name
application/json
application/json
application/json
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.
Id of the role which we want to update
{
"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
}
}
}{
"statusCode": 400,
"error": "Bad Request",
"message": "Missing or misformatted query parameter or body"
}{
"statusCode": 401,
"error": "Unauthorized",
"message": "Failed to verify token"
}{
"statusCode": 403,
"error": "Forbidden",
"message": "User does not have sufficient rights"
}