@ResponseCode ( code = 200, condition = "Successful operation." ),
@ResponseCode ( code = 401, condition = "User is not authorized to update blockout." )
} )
public Response updateBlockout( @QueryParam ( "jobid" ) String jobId, JobScheduleRequest jobScheduleRequest ) {
try {
Job job = schedulerService.updateBlockout( jobId, jobScheduleRequest );
return buildPlainTextOkResponse( job.getJobId() );
} catch ( IOException e ) {
return buildStatusResponse( Status.UNAUTHORIZED );
} catch ( SchedulerException e ) {
return buildStatusResponse( Status.UNAUTHORIZED );
} catch ( IllegalAccessException e ) {