added api to register and update several schedules.