Creates a new supervisor role.
post
/learn.rest/v1/learnCenters/{learnCenterId}/supervisorRoles
Request
Supported Media Types
- application/json
Path Parameters
-
learnCenterId: number
Unique identifier of a LearnCenter.
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
201 Response
New supervisor role is 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.
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.