ScheduleUpdate
namestring
Name of the schedule
regular_schedules_attributes object[]
List of regular schedules to update
Array [
idinteger
ID of the regular schedule to update
_destroyboolean
Set to true to destroy this regular schedule
days object
Days of the week when this schedule is active
monboolean
tueboolean
wedboolean
thuboolean
friboolean
satboolean
sunboolean
start_timetime
Start time for this schedule
end_timetime
End time for this schedule
]
special_schedules_attributes object[]
List of special schedules to update
Array [
idinteger
ID of the special schedule to update
_destroyboolean
Set to true to destroy this special schedule
datedate
Date for this special schedule
start_timetime
Start time for this schedule
end_timetime
End time for this schedule
closed_all_dayboolean
Whether the schedule is closed all day
]
ScheduleUpdate
{
"name": "string",
"regular_schedules_attributes": [
{
"id": 0,
"_destroy": true,
"days": {
"mon": true,
"tue": true,
"wed": true,
"thu": true,
"fri": true,
"sat": true,
"sun": true
},
"start_time": "string",
"end_time": "string"
}
],
"special_schedules_attributes": [
{
"id": 0,
"_destroy": true,
"date": "2024-07-29",
"start_time": "string",
"end_time": "string",
"closed_all_day": true
}
]
}