public DeployKey addDeployKey ( Object projectIdOrPath , String title , String key , Boolean canPush ) throws GitLabApiException { GitLabApiForm formData = new GitLabApiForm ( ) . withParam ( "title" , title , true ) . withParam ( "key" , key , true ) . withParam ( "can_push" , canPush ) ; Response response = post ( Response . Status . CREATED , formData , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "deploy_keys" ) ; return ( response . readEntity ( DeployKey . class ) ) ; }
Creates a new deploy key for a project .