This method has been replaced with Create Resource, and will be removed on June 30, 2025.
Creates a resource.
Bookings resources are created with a schedule. The schedule and its sessions determine the resource's availability. Note that the schedule must contain a start date in the availability.start
property.
For resources that are available during the business's default hours, add the business's schedule as a linked schedule in the resource's schedule. For resources that have their own hours, create sessions with type "WORKING_HOURS"
using the resource's schedule.
You can use both individual and recurring sessions to define resource availability. You cannot use availability constraints for resource schedules.
Use the following steps to create resources:
scheduleInfo.availability.linkedSchedules
array in the schedule parameters."WORKING_HOURS"
. Use the scheduleId
of the new resource when creating the sessions. These session can be single sessions or recurring sessions. You can have both business hours and custom hours for the same resource schedule.Notes:
businessLocation.businessSchedule
object in the schedule.location
object is not supported.Permissions: This endpoint requires the Manage Bookings permission scope.
You can only call this method when authenticated as a Wix app or Wix user identity.
There is 1 error with this status code:
See the entire list and learn more about Wix errors.