Resource Object


A resource represents an entity, such as a room or a staff member, that can be scheduled for use in a booking. The availability of a resource is tracked to ensure that it can be allocated at a requested time slot and to prevent double bookings.

Properties
appIdstringformat GUIDimmutable

ID of the app associated with the resource. You can't update appId. Resources are displayed in Wix Bookings only if they are associated with the Wix Bookings app ID or have no associated app ID. Default: 13d21c63-b5ec-5912-8397-c3a5ddb27a97 (Wix Bookings app ID) For resources from Wix apps, the following values apply:

  • Wix Bookings: "13d21c63-b5ec-5912-8397-c3a5ddb27a97"
  • Wix Services: "cc552162-24a4-45e0-9695-230c4931ef40"
  • Wix Meetings: "6646a75c-2027-4f49-976c-58f3d713ed0f" Full list of apps created by Wix.

createdDatestringRead-onlyformat date-time

Time in YYYY-MM-DDThh:mm:ss.sssZ format the resource was created.


eventsScheduleEventsScheduleRead-only

Schedule containing the events for which the resource has been booked.


extendedFieldsExtendedFields

Extensions enabling users to save custom data related to the resource.


idstringRead-onlyformat GUID

Resource ID.


locationOptionsLocationOptions

Information about the location where the resource is available.


namestringmaxLength 40minLength 1

Name of the resource.


revisionstringRead-onlyformat int64

Revision number, which increments by 1 each time the resource is updated. To prevent conflicting changes, the current revision must be passed when updating the resource.


typeIdstringformat GUIDimmutable

ID of the resource type.

Once a type has been set it can't be modified. You can create a resource without specifying a type. However, customers can't book such resources.


updatedDatestringRead-onlyformat date-time

Time in YYYY-MM-DDThh:mm:ss.sssZ format the resource was last updated.


workingHoursSchedulesWorkingHoursSchedules

Information about the schedule specifying the working hours and locations of the resource.

Resources without a working hour schedule are available 24/7 at the locations specified in the field locationOptions. When both workingHoursSchedules and locationOptions are set, workingHoursSchedules takes precedence.

Did this help?