public Member updateMember ( Object projectIdOrPath , Integer userId , Integer accessLevel , Date expiresAt ) throws GitLabApiException { GitLabApiForm formData = new GitLabApiForm ( ) . withParam ( "access_level" , accessLevel , true ) . withParam ( "expires_at" , expiresAt , false ) ; Response response = put ( Response . Status . OK , formData . asMap ( ) , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "members" , userId ) ; return ( response . readEntity ( Member . class ) ) ; }
Updates a member of a project .