public GitlabUser updateUser ( Integer targetUserId , String email , String password , String username , String fullName , String skypeId , String linkedIn , String twitter , String website_url , Integer projects_limit , String extern_uid , String extern_provider_name , String bio , Boolean isAdmin , Boolean can_create_group , Boolean external ) throws IOException { Query query = new Query ( ) . append ( "email" , email ) . appendIf ( "password" , password ) . appendIf ( "username" , username ) . appendIf ( "name" , fullName ) . appendIf ( "skype" , skypeId ) . appendIf ( "linkedin" , linkedIn ) . appendIf ( "twitter" , twitter ) . appendIf ( "website_url" , website_url ) . appendIf ( "projects_limit" , projects_limit ) . appendIf ( "extern_uid" , extern_uid ) . appendIf ( "provider" , extern_provider_name ) . appendIf ( "bio" , bio ) . appendIf ( "admin" , isAdmin ) . appendIf ( "can_create_group" , can_create_group ) . appendIf ( "external" , external ) ; String tailUrl = GitlabUser . USERS_URL + "/" + targetUserId + query . toString ( ) ; return retrieve ( ) . method ( PUT ) . to ( tailUrl , GitlabUser . class ) ; }
Update a user