Updates a resource's schedule.
The updateResourceSchedule()
function returns a Promise that resolves when a resource's schedule has been updated.
Use this function to update the bookings resource's schedule. To update other resource details use updateResource()
.
The following schedule properties can be updated:
availability.start
availability.linkedSchedules
Update a resource's schedule to remove business hours and add custom hours.
updateResourceSchedule()
to remove the business's scheduleId from the availability.linkedSchedules
array.createSession()
to create a set of recurring sessions of type "WORKING_HOURS"
to define the resource's new hours.Update a resource's schedule to add default business hours, and keep or remove custom hours.
updateResourceSchedule()
to add the business resource's scheduleId
to the availability.linkedSchedules
array.deleteSession()
to delete the resource's sessions of type "WORKING_HOURS"
. You do not have to delete exiting custom sessions. You can have both default working hours and custom hours for the same schedule. Custom sessions that are not deleted will continue to be included in availability calculations and can still be booked.Notes:
options.suppressAuth
parameter to true
.
Resource ID to update.
Schedule ID.
Updated schedule information.
An object representing the available options for updating a resource schedule.