@PUT
  @Path("{requestScheduleId}")
  @Produces(MediaType.TEXT_PLAIN)
  @ApiOperation(value = "Updates a scheduled request, usually used to pause running scheduled requests or to resume them.",
    notes = "Changes the state of an existing request. Usually used to pause running scheduled requests or to resume them.",
    nickname = "RequestSchedules#updateRequestSchedule"
  )
  @ApiImplicitParams({
    @ApiImplicitParam(dataType = REQUEST_SCHEDULE_REQUEST_TYPE, paramType = PARAM_TYPE_BODY)
  })
  @ApiResponses({
    @ApiResponse(code = HttpStatus.SC_OK, message = MSG_SUCCESSFUL_OPERATION),
    @ApiResponse(code = HttpStatus.SC_ACCEPTED, message = MSG_REQUEST_ACCEPTED),
    @ApiResponse(code = HttpStatus.SC_BAD_REQUEST, message = MSG_INVALID_ARGUMENTS),
    @ApiResponse(code = HttpStatus.SC_NOT_FOUND, message = MSG_RESOURCE_NOT_FOUND),
    @ApiResponse(code = HttpStatus.SC_UNAUTHORIZED, message = MSG_NOT_AUTHENTICATED),
    @ApiResponse(code = HttpStatus.SC_FORBIDDEN, message = MSG_PERMISSION_DENIED),
    @ApiResponse(code = HttpStatus.SC_INTERNAL_SERVER_ERROR, message = MSG_SERVER_ERROR),
  })
  public Response updateRequestSchedule(String body, @Context HttpHeaders headers, @Context UriInfo ui,
                                 @ApiParam @PathParam("requestScheduleId") String requestScheduleId) {
    return handleRequest(headers, body, ui, Request.Type.PUT, createRequestSchedule(m_clusterName, requestScheduleId));
  }
Handles URL: /clusters/{clusterId}/request_schedules/{requestScheduleId}
Get details on a specific request schedule

@return
ambari-server/src/main/java/org/apache/ambari/server/api/services/RequestScheduleService.java