updateBusinessSchedule( )

Developer Preview

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.


  • The 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.
Admin Method

This function requires elevated permissions and runs only on the backend and on dashboard pages.

Permission Scopes

For app development, you must have one of the following permission scopes:
Manage Business Schedule
Learn more about permission scopes.
Method Declaration
Method Parameters

The site's business schedule in the site time zone.

Was this helpful?