Update all properties of a supervisor role.
put
/learn.rest/v1/learnCenters/{learnCenterId}/supervisorRoles/{supervisorRoleId}
Request
Supported Media Types
- application/json
Path Parameters
-
learnCenterId: number
Unique identifier of a LearnCenter.
-
supervisorRoleId: number
Unique identifier of a supervisor role.
Supervisor role object that needs to be updated.
Root Schema : SupervisorRoleRequest
Type:
Show Source
object
-
description(optional):
string
-
globalFlag(optional):
boolean
Default Value:
false
-
name(optional):
string
-
permissions(optional):
array permissions
-
statusFlag(optional):
boolean
Default Value:
true
Example:
{
"id":1914,
"name":"new test role",
"description":"new test role desc",
"permissions":[
"receiveComSystemMessages",
"attachFilesToMessages"
],
"statusFlag":false,
"globalFlag":false
}
Security
-
auth: basic
Type:
basic
Description:Basic Authentication
Response
Supported Media Types
- application/json
200 Response
Resource updated.
400 Response
Request has incorrect syntax or does not contain a field that is required.
401 Response
404 Response
Resource not found.
422 Response
Request may contain validation errors.
500 Response
Internal server error.