Creates a new user and role mapping.

post

/learn.rest/v1/learnCenters/{learnCenterId}/userRoles/{userRoleId}/users

Request

Supported Media Types
Path Parameters
Body ()
User and role mapping object that needs to be created.
Root Schema : UserRolesMappingRequest
Type: object
Object containing the user identifier parameters.
Show Source
Example:
{
    "UserId":"995521"
}
Security
Back to Top

Response

Supported Media Types

201 Response

New user and role mapping created.
Body ()
Root Schema : UserRoleUserResponse
Type: object
Show Source
Nested Schema : user
Type: object
Show Source
Nested Schema : userRole
Type: object
Show Source
Nested Schema : UserLinkItem
Type: object
Object of the User Link Item.
Show Source
Example:
{
    "rel":"canonical",
    "href":"{url}/learn.rest/v1/users/456"
}
Nested Schema : UserRoleLinkItem
Type: object
Show Source
Example:
{
    "rel":"canonical",
    "href":"https://{url}/learn.rest/v1/learnCenters/178784/userRoles/639"
}

400 Response

Request has incorrect syntax or does not contain a field that is required.

401 Response

Authentication refused for provided credentials or token invalid.
Headers

404 Response

Resource not found.

422 Response

Request may contain validation errors.

500 Response

Internal server error.
Back to Top