Update all properties of a user role.
put
/learn.rest/v1/learnCenters/{learnCenterId}/userRoles/{userRoleId}
Request
Supported Media Types
- application/json
Path Parameters
-
learnCenterId: number
Unique identifier of a LearnCenter.
-
userRoleId: number
Unique identifier of a user role.
User role object that needs to be updated.
Root Schema : UserRoleRequest
Type:
object
Object containing the user role parameters.
Show Source
-
description(optional):
string
Description of the user role.Example:
test
-
name:
string
Name of the user role.Example:
admin role
-
permissions(optional):
array permissions
Permissions granted for the user role.
-
statusFlag(optional):
boolean
Default Value:
true
Status of the user role.Example:true
Nested Schema : permissions
Type:
array
Permissions granted for the user role.
Show Source
Example:
[
"receiveComSystemMessages",
"attachFilesToMessages",
"emailCompletionCertificates",
"useForums",
"viewReviews",
"addGlobalLCCalendarEvents",
"insertNewReviews",
"viewLearnCenterPages",
"viewInsightReportingReports",
"sendComSystemMessages",
"viewCoursePages",
"useComSystemAddressBook",
"useChatRooms",
"useCommunicationTools",
"modifyReviews",
"printCompletionCertificates",
"viewCertificatesContent",
"viewContent"
]
Security
-
auth: basic
Type:
basic
Description:Basic Authentication
Response
Supported Media Types
- application/xml
- 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.