def METHOD_NAME(pid:int):
	task: Optional[RepeatableTask] = g.db.get(RepeatableTask, pid)
	if not task: abort(404)
	# rebuild the schedule
	task.enabled = _get_request_bool('enabled')
	task.frequency_day_flags = _get_request_dayofweek()
	hour:int = validators.int_ranged('hour', 0, 23)
	minute:int = validators.int_ranged('minute', 0, 59)
	second:int = 0 # TODO: seconds?
	time_of_day_utc:time = time(hour, minute, second)
	task.time_of_day_utc = time_of_day_utc
	g.db.commit()