public PipelineSchedule updatePipelineSchedule ( Object projectIdOrPath , PipelineSchedule pipelineSchedule ) throws GitLabApiException { GitLabApiForm formData = new GitLabApiForm ( ) . withParam ( "description" , pipelineSchedule . getDescription ( ) , false ) . withParam ( "ref" , pipelineSchedule . getRef ( ) , false ) . withParam ( "cron" , pipelineSchedule . getCron ( ) , false ) . withParam ( "cron_timezone" , pipelineSchedule . getCronTimezone ( ) , false ) . withParam ( "active" , pipelineSchedule . getActive ( ) , false ) ; Response response = put ( Response . Status . OK , formData . asMap ( ) , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "pipeline_schedules" , pipelineSchedule . getId ( ) ) ; return ( response . readEntity ( PipelineSchedule . class ) ) ; }
Modifies a pipeline schedule for project .