bookingStaffMember resource type

Namespace: microsoft.graph

Important

APIs under the /beta version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported. To determine whether an API is available in v1.0, use the Version selector.

Represents a staff member who provides services in a bookingBusiness.

Staff members can be part of the Microsoft 365 tenant where the booking business is configured, or they can use email services from other email providers.

When booking appointments, the Bookings API considers the following settings to determine a staff member's availability:

  1. By default, the hours of operation of the business (the businessHours property of the bookingBusiness entity) represent the general availability of the staff member.
  2. If useBusinessHours is false, then the staff member's specific work hours (workingHours property of the bookingStaffmember entity) represent that member's general availability.
  3. If availabilityIsAffectedByPersonalCalendar is true, then the Bookings API would first look at the staff member's generally available hours (as determined by either #1 or #2), and verify availability during those hours in the staff member's personal calendar, before making a booking.

Microsoft Bookings supports a maximum of 100 staff members in a booking calendar.

Methods

Method Return Type Description
List staff members bookingStaffMember collection Get a list of bookingStaffMember objects in the specified bookingBusiness.
Create bookingStaff bookingStaffMember collection Create a new bookingStaffMember in the specified bookingBusiness.
Get bookingStaffMember bookingStaffMember Get the properties and relationships of a bookingStaffMember in the specified bookingBusiness.
Update None Update the properties of a bookingStaffMember in the specified bookingBusiness.
Delete None Delete a staff member in the specified bookingBusiness.

Properties

Property Type Description
availabilityIsAffectedByPersonalCalendar Boolean True means that if the staff member is a Microsoft 365 user, the Bookings API would verify the staff member's availability in their personal calendar in Microsoft 365, before making a booking.
colorIndex Int32 Identifies a color to represent the staff member. The color corresponds to the color palette in the Staff details page in the Bookings app.
createdDateTime DateTimeOffset The date, time and timezone when the staff member was created.
displayName String The name of the staff member, as displayed to customers. Required.
emailAddress String The email address of the staff member. This email address can be in the same Microsoft 365 tenant as the business, or in a different email domain. This email address can be used if the sendConfirmationsToOwner property is set to true in the scheduling policy of the business. Required.
id String The ID of the staff member, in a GUID format. Read-only.
isEmailNotificationEnabled Boolean Indicates that a staff members are notified via email when a booking assigned to them is created or changed. The default value is true
lastUpdatedDateTime DateTimeOffset The date, time and timezone when the staff member was last updated.
role bookingStaffRole The role of the staff member in the business. Possible values are: guest, administrator, viewer, externalGuest, unknownFutureValue, scheduler, teamMember. You must use the Prefer: include-unknown-enum-members request header to get the following values from this evolvable enum: scheduler, teamMember. Required.
timeZone String The time zone of the staff member. For a list of possible values, see dateTimeTimeZone.
useBusinessHours Boolean True means the staff member's availability is as specified in the businessHours property of the business. False means the availability is determined by the staff member's workingHours property setting.
workingHours bookingWorkHours collection The range of hours each day of the week that the staff member is available for booking. By default, they're initialized to be the same as the businessHours property of the business.

Relationships

None

JSON representation

The following JSON is a representation of the resource.

{
  "@odata.type": "#microsoft.graph.bookingStaffMember",
  "id": "String (identifier)",
  "displayName": "String",
  "emailAddress": "String",
  "availabilityIsAffectedByPersonalCalendar": "Boolean",
  "colorIndex": "Integer",
  "role": "String",
  "useBusinessHours": "Boolean",
  "workingHours": [
    {
      "@odata.type": "microsoft.graph.bookingWorkHours"
    }
  ],
  "timeZone": "String",
  "isEmailNotificationEnabled": "Boolean",
  "createdDateTime": "String (timestamp)",
  "lastUpdatedDateTime": "String (timestamp)"
}