Patch
Update Schedule
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 a resource's schedule
To update a resource's schedule to remove business hours and add custom hours:
- Update the resource's schedule to remove the business's
scheduleId
from theavailability.linkedSchedules
array. - Create a set of recurring sessions of type
"WORKING_HOURS"
to define the resource's new hours.
To update a resource's schedule to add default business hours, and keep or remove custom hours:
- Update the resource's schedule to add the business resource's
scheduleId
to theavailability.linkedSchedules
array. - If you want to remove the custom sessions, delete the resource's sessions of type
"WORKING_HOURS"
. You do not have to delete exiting custom sessions. Custom session that are not deleted will continue to be included in availability calculations and can still be booked.
Notes:
- A resource can have one schedule only.
- A resource can have both default business hours and custom hours in its schedule.
- When updating a resource's schedule you cannot change the system tags used by the Wix Bookings app. Tags used by the app have the values
"INDIVIDUAL"
,"GROUP"
, and"COURSE”
. - The
businessLocation.businessSchedule
object in theschedule.location
object is not supported.
Permissions: This endpoint requires the Manage Bookings permission scope.
Permission Scopes
For app development, you must have one of the following permission scopes:Manage Bookings
Learn more about permission scopes.
Endpoint
PATCH
https://www.wixapis.com/_api/bookings/v1/resources/{resourceId}/updateScheduleWas this helpful?
Yes
No