{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-outlook/json-schema/microsoft-outlook-microsoft-graph-schedule-information-schema.json",
  "title": "scheduleInformation",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-outlook-groups-calendar-api-openapi.yml#/components/schemas/microsoft.graph.scheduleInformation",
  "required": [
    "@odata.type"
  ],
  "type": "object",
  "properties": {
    "availabilityView": {
      "type": [
        "string",
        "null"
      ],
      "description": "Represents a merged view of availability of all the items in scheduleItems. The view consists of time slots. Availability during each time slot is indicated with: 0= free or working elswhere, 1= tentative, 2= busy, 3= out of office.Note: Working elsewhere is set to 0 instead of 4 for backward compatibility. For details, see the Q&A and Exchange 2007 and Exchange 2010 do not use the WorkingElsewhere value."
    },
    "error": {
      "anyOf": [
        {
          "$ref": "#/$defs/microsoft.graph.freeBusyError"
        },
        {
          "type": [
            "object",
            "null"
          ]
        }
      ],
      "description": "Error information from attempting to get the availability of the user, distribution list, or resource."
    },
    "scheduleId": {
      "type": [
        "string",
        "null"
      ],
      "description": "An SMTP address of the user, distribution list, or resource, identifying an instance of scheduleInformation."
    },
    "scheduleItems": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/microsoft.graph.scheduleItem"
      },
      "description": "Contains the items that describe the availability of the user or resource."
    },
    "workingHours": {
      "anyOf": [
        {
          "$ref": "#/$defs/microsoft.graph.workingHours"
        },
        {
          "type": [
            "object",
            "null"
          ]
        }
      ],
      "description": "The days of the week and hours in a specific time zone that the user works. These are set as part of the user's mailboxSettings."
    },
    "@odata.type": {
      "type": "string"
    }
  },
  "$defs": {
    "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"
        }
      }
    },
    "microsoft.graph.dayOfWeek": {
      "title": "dayOfWeek",
      "enum": [
        "sunday",
        "monday",
        "tuesday",
        "wednesday",
        "thursday",
        "friday",
        "saturday"
      ],
      "type": "string"
    },
    "microsoft.graph.freeBusyError": {
      "title": "freeBusyError",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "message": {
          "type": [
            "string",
            "null"
          ],
          "description": "Describes the error."
        },
        "responseCode": {
          "type": [
            "string",
            "null"
          ],
          "description": "The response code from querying for the availability of the user, distribution list, or resource."
        },
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.freeBusyStatus": {
      "title": "freeBusyStatus",
      "enum": [
        "unknown",
        "free",
        "tentative",
        "busy",
        "oof",
        "workingElsewhere"
      ],
      "type": "string"
    },
    "microsoft.graph.scheduleItem": {
      "title": "scheduleItem",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "end": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.dateTimeTimeZone"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "The date, time, and time zone that the corresponding event ends."
        },
        "isPrivate": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "The sensitivity of the corresponding event. True if the event is marked private, false otherwise. Optional."
        },
        "location": {
          "type": [
            "string",
            "null"
          ],
          "description": "The location where the corresponding event is held or attended from. Optional."
        },
        "start": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.dateTimeTimeZone"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "The date, time, and time zone that the corresponding event starts."
        },
        "status": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.freeBusyStatus"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "The availability status of the user or resource during the corresponding event. The possible values are: free, tentative, busy, oof, workingElsewhere, unknown."
        },
        "subject": {
          "type": [
            "string",
            "null"
          ],
          "description": "The corresponding event's subject line. Optional."
        },
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.timeZoneBase": {
      "title": "timeZoneBase",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "name": {
          "type": [
            "string",
            "null"
          ],
          "description": "The name of a time zone. It can be a standard time zone name such as 'Hawaii-Aleutian Standard Time', or 'Customized Time Zone' for a custom time zone."
        },
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.workingHours": {
      "title": "workingHours",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "daysOfWeek": {
          "type": "array",
          "items": {
            "anyOf": [
              {
                "$ref": "#/$defs/microsoft.graph.dayOfWeek"
              },
              {
                "type": [
                  "object",
                  "null"
                ]
              }
            ]
          },
          "description": "The days of the week on which the user works."
        },
        "endTime": {
          "pattern": "^([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?$",
          "type": [
            "string",
            "null"
          ],
          "description": "The time of the day that the user stops working.",
          "format": "time"
        },
        "startTime": {
          "pattern": "^([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?$",
          "type": [
            "string",
            "null"
          ],
          "description": "The time of the day that the user starts working.",
          "format": "time"
        },
        "timeZone": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.timeZoneBase"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "The time zone to which the working hours apply."
        },
        "@odata.type": {
          "type": "string"
        }
      }
    }
  }
}