{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-bookings/json-schema/microsoft-bookings-microsoft-graph-staff-availability-item-schema.json",
  "title": "staffAvailabilityItem",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-bookings-graph-openapi.yml#/components/schemas/microsoft.graph.staffAvailabilityItem",
  "required": [
    "@odata.type"
  ],
  "type": "object",
  "properties": {
    "availabilityItems": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/microsoft.graph.availabilityItem"
      },
      "description": "Each item in this collection indicates a slot and the status of the staff member."
    },
    "staffId": {
      "type": [
        "string",
        "null"
      ],
      "description": "The ID of the staff member."
    },
    "@odata.type": {
      "type": "string"
    }
  },
  "$defs": {
    "microsoft.graph.availabilityItem": {
      "title": "availabilityItem",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "endDateTime": {
          "$ref": "#/$defs/microsoft.graph.dateTimeTimeZone"
        },
        "serviceId": {
          "type": [
            "string",
            "null"
          ],
          "description": "Indicates the service ID for 1:n appointments. If the appointment is of type 1:n, this field is present, otherwise, null."
        },
        "startDateTime": {
          "$ref": "#/$defs/microsoft.graph.dateTimeTimeZone"
        },
        "status": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.bookingsAvailabilityStatus"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "The status of the staff member. The possible values are: available, busy, slotsAvailable, outOfOffice, unknownFutureValue."
        },
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.bookingsAvailabilityStatus": {
      "title": "bookingsAvailabilityStatus",
      "enum": [
        "available",
        "busy",
        "slotsAvailable",
        "outOfOffice",
        "unknownFutureValue"
      ],
      "type": "string"
    },
    "microsoft.graph.dateTimeTimeZone": {
      "title": "dateTimeTimeZone",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "dateTime": {
          "type": "string",
          "description": "A single point of time in a combined date and time representation ({date}T{time}; for example, 2017-08-29T04:00:00.0000000)."
        },
        "timeZone": {
          "type": [
            "string",
            "null"
          ],
          "description": "Represents a time zone, for example, 'Pacific Standard Time'. See below for more possible values."
        },
        "@odata.type": {
          "type": "string"
        }
      }
    }
  }
}