public DeployKey enableDeployKey ( Object projectIdOrPath , Integer keyId ) throws GitLabApiException { if ( keyId == null ) { throw new RuntimeException ( "keyId cannot be null" ) ; } Response response = post ( Response . Status . CREATED , ( Form ) null , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "deploy_keys" , keyId , "enable" ) ; return ( response . readEntity ( DeployKey . class ) ) ; }
Enables a deploy key for a project so this can be used . Returns the enabled key when successful .