Updates subset of properties for a supervisor role.
patch
/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 created.
Root Schema : SupervisorRoleRequest
Type:
object
Object comprising parameters to be passed to create a new supervisor role.
Show Source
-
description(optional):
string
Description of the role you want to create.Example:
new test role desc
-
globalFlag(optional):
boolean
Default Value:
false
Whether the created role is searchable globally.Example:false
-
name(optional):
string
Name of the supervisor role.Example:
new test role
-
permissions(optional):
array permissions
The permissions applicable to the supervisor role you create.
-
statusFlag(optional):
boolean
Default Value:
true
Status of Supervisor role createdExample:true
Nested Schema : permissions
Type:
array
The permissions applicable to the supervisor role you create.
Show Source
Example:
[
"receiveComSystemMessages",
"attachFilesToMessages"
]
Nested Schema : items
Type:
Show Source
object
-
id(optional):
string
Id of the supervisor role you want to assign permissions to.
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
Authentication refused for provided credentials or the token is invalid.
Headers
404 Response
Resource not found.
422 Response
Request may contain validation errors.
500 Response
Internal server error.