public MergeRequest unapproveMergeRequest ( Object projectIdOrPath , Integer mergeRequestIid ) throws GitLabApiException { if ( mergeRequestIid == null ) { throw new RuntimeException ( "mergeRequestIid cannot be null" ) ; } Response response = post ( Response . Status . OK , ( Form ) null , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "merge_requests" , mergeRequestIid , "unapprove" ) ; return ( response . readEntity ( MergeRequest . class ) ) ; }
Unapprove a merge request .