This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Updates the default location's business schedule.
The updateBusinessSchedule()
function returns a Promise that resolves when the site's business schedule is updated.
Note:
updateBusinessSchedule()
function overwrites the current business schedule. businessSchedule
is an array, so it must be written in its entirety. Therefore, you must modify the existing array and pass it in the function call.This function requires elevated permissions and runs only on the backend and on dashboard pages.
The site's business schedule in the site time zone.