public void shareProject ( Object projectIdOrPath , Integer groupId , AccessLevel accessLevel , Date expiresAt ) throws GitLabApiException { GitLabApiForm formData = new GitLabApiForm ( ) . withParam ( "group_id" , groupId , true ) . withParam ( "group_access" , accessLevel , true ) . withParam ( "expires_at" , expiresAt ) ; post ( Response . Status . CREATED , formData , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "share" ) ; }
Share a project with the specified group .