Update an existing work schedule
0 = Sunday (Domingo)1 = Monday (Lunes)2 = Tuesday (Martes)3 = Wednesday (Miércoles)4 = Thursday (Jueves)5 = Friday (Viernes)6 = Saturday (Sábado)HH:MM (24-hour format)Examples:"09:00" - 9:00 AM"14:30" - 2:30 PM"08:00" - 8:00 AM00-2300-59/^([0-1]?[0-9]|2[0-3]):[0-5][0-9]$/HH:MM (24-hour format)Examples:"17:30" - 5:30 PM"13:00" - 1:00 PM"20:00" - 8:00 PM00-2300-59/^([0-1]?[0-9]|2[0-3]):[0-5][0-9]$/startTime (if both are provided or startTime exists)professionalID field cannot be updated. If you need to assign a schedule to a different professional, you must delete the existing schedule and create a new one.
dayOfWeek, the system ensures that the professional doesn’t already have another schedule for that day. The unique constraint is enforced on (professionalID, dayOfWeek).
Example:
startTime and endTime must match the HH:MM format:
"09:00", "14:30", "08:15", "23:59""9:00" (missing leading zero), "09:00:00" (includes seconds), "25:00" (invalid hour)endTime must be strictly greater than startTime:
startTime: "09:00", endTime: "17:30"startTime: "09:00", endTime: "09:00"startTime: "17:00", endTime: "09:00"endTime from "18:00" to "16:00"), existing appointments scheduled between 16:00-18:00 will become invaliddayOfWeek, all appointments scheduled on the original day may become invalid