Creates a new user and role mapping.
post
                    /learn.rest/v1/learnCenters/{learnCenterId}/userRoles/{userRoleId}/users
Request
Supported Media Types
                - application/json
Path Parameters
                - 
                    learnCenterId(required): number
                    
                    Unique identifier of a LearnCenter.
- 
                    userRoleId(required): number
                    
                    Unique identifier of a user role.
User and role mapping object that needs to be created.
                
                
                
                Root Schema : UserRolesMappingRequest
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    objectObject containing the user identifier parameters.
    
    
    
    
    Show Source
        
        
    
    
    
    
    
    
    Example:
    
    
{
    "UserId":"995521"
}Security
                - 
                        auth: basic
                        
                        Type:basicDescription:Basic Authentication
Response
Supported Media Types
                - application/json
201 Response
New user and role mapping created.
                
                
                    Root Schema : UserRoleUserResponse
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    Show Source
        object- 
            createdDate: 
            string
            Example:2019-02-04T10:46:21Z
- 
            links: 
            array  links
            
            
- 
            roleId: 
            number
            Example:640
- 
            statusFlag: 
            boolean
            Example:true
- 
            user: 
            object  user
            
            
- 
            userId: 
            number
            Example:123123
- 
            userRole: 
            object  userRole
            
            
Nested Schema : links
    
      
      Type: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        
        
    
    
    
    
    
    arrayExample:
    
    
[
    {
        "rel":"canonical",
        "href":"https://{url}/learn.rest/v1/learnCenters/178409/userRoles/123/users"
    }
]Nested Schema : links
    
      
      Type: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        array- 
            Array of: 
                object  UserLinkItem
            
            Object of the User Link Item.
Nested Schema : UserLinkItem
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    objectObject of the User Link Item.
    
    
    
    
    Show Source
        - 
            href: 
            string
            Example:{url}/learn.rest/v1/users/456
- 
            rel: 
            string
            Example:canonical
Example:
    
    
{
    "rel":"canonical",
    "href":"{url}/learn.rest/v1/users/456"
}Nested Schema : UserRoleLinkItem
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    Show Source
        
        
    
    
    
    
    
    
    objectExample:
    
    
{
    "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
404 Response
Resource not found.
                
                
                422 Response
Request may contain validation errors.
                
                
                500 Response
Internal server error.