{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-365/json-schema/microsoft-365-microsoft-graph-time-off-request-schema.json",
  "title": "microsoft.graph.timeOffRequest",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-365-teams-schedule-api-openapi.yml#/components/schemas/microsoft.graph.timeOffRequest",
  "allOf": [
    {
      "$ref": "#/$defs/microsoft.graph.scheduleChangeRequest"
    },
    {
      "title": "timeOffRequest",
      "type": "object",
      "properties": {
        "endDateTime": {
          "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$",
          "type": [
            "string",
            "null"
          ],
          "description": "The date and time the time off ends in ISO 8601 format and in UTC time.",
          "format": "date-time"
        },
        "startDateTime": {
          "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$",
          "type": [
            "string",
            "null"
          ],
          "description": "The date and time the time off starts in ISO 8601 format and in UTC time.",
          "format": "date-time"
        },
        "timeOffReasonId": {
          "type": [
            "string",
            "null"
          ],
          "description": "The reason for the time off."
        }
      },
      "additionalProperties": {
        "type": "object"
      }
    }
  ],
  "$defs": {
    "microsoft.graph.changeTrackedEntity": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.entity"
        },
        {
          "title": "changeTrackedEntity",
          "type": "object",
          "properties": {
            "createdBy": {
              "$ref": "#/$defs/microsoft.graph.identitySet"
            },
            "createdDateTime": {
              "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$",
              "type": [
                "string",
                "null"
              ],
              "description": "The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z",
              "format": "date-time",
              "readOnly": true
            },
            "lastModifiedBy": {
              "$ref": "#/$defs/microsoft.graph.identitySet"
            },
            "lastModifiedDateTime": {
              "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$",
              "type": [
                "string",
                "null"
              ],
              "description": "The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z",
              "format": "date-time",
              "readOnly": true
            }
          },
          "additionalProperties": {
            "type": "object"
          }
        }
      ]
    },
    "microsoft.graph.entity": {
      "title": "entity",
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The unique identifier for an entity. Read-only."
        }
      },
      "additionalProperties": {
        "type": "object"
      }
    },
    "microsoft.graph.identity": {
      "title": "identity",
      "type": "object",
      "properties": {
        "displayName": {
          "type": [
            "string",
            "null"
          ],
          "description": "The display name of the identity.For drive items, the display name might not always be available or up to date. For example, if a user changes their display name the API might show the new value in a future response, but the items associated with the user don't show up as changed when using delta."
        },
        "id": {
          "type": [
            "string",
            "null"
          ],
          "description": "Unique identifier for the identity or actor. For example, in the access reviews decisions API, this property might record the id of the principal, that is, the group, user, or application that's subject to review."
        }
      },
      "additionalProperties": {
        "type": "object"
      }
    },
    "microsoft.graph.identitySet": {
      "title": "identitySet",
      "type": "object",
      "properties": {
        "application": {
          "$ref": "#/$defs/microsoft.graph.identity"
        },
        "device": {
          "$ref": "#/$defs/microsoft.graph.identity"
        },
        "user": {
          "$ref": "#/$defs/microsoft.graph.identity"
        }
      },
      "additionalProperties": {
        "type": "object"
      }
    },
    "microsoft.graph.scheduleChangeRequest": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.changeTrackedEntity"
        },
        {
          "title": "scheduleChangeRequest",
          "type": "object",
          "properties": {
            "assignedTo": {
              "$ref": "#/$defs/microsoft.graph.scheduleChangeRequestActor"
            },
            "managerActionDateTime": {
              "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$",
              "type": [
                "string",
                "null"
              ],
              "description": "The date and time when the manager approved or declined the scheduleChangeRequest. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.",
              "format": "date-time",
              "readOnly": true
            },
            "managerActionMessage": {
              "type": [
                "string",
                "null"
              ],
              "description": "The message sent by the manager regarding the scheduleChangeRequest. Optional."
            },
            "managerUserId": {
              "type": [
                "string",
                "null"
              ],
              "description": "The user ID of the manager who approved or declined the scheduleChangeRequest.",
              "readOnly": true
            },
            "senderDateTime": {
              "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$",
              "type": [
                "string",
                "null"
              ],
              "description": "The date and time when the sender sent the scheduleChangeRequest. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.",
              "format": "date-time",
              "readOnly": true
            },
            "senderMessage": {
              "type": [
                "string",
                "null"
              ],
              "description": "The message sent by the sender of the scheduleChangeRequest. Optional."
            },
            "senderUserId": {
              "type": [
                "string",
                "null"
              ],
              "description": "The user ID of the sender of the scheduleChangeRequest.",
              "readOnly": true
            },
            "state": {
              "$ref": "#/$defs/microsoft.graph.scheduleChangeState"
            }
          },
          "additionalProperties": {
            "type": "object"
          }
        }
      ]
    },
    "microsoft.graph.scheduleChangeRequestActor": {
      "title": "scheduleChangeRequestActor",
      "enum": [
        "sender",
        "recipient",
        "manager",
        "system",
        "unknownFutureValue"
      ],
      "type": "string"
    },
    "microsoft.graph.scheduleChangeState": {
      "title": "scheduleChangeState",
      "enum": [
        "pending",
        "approved",
        "declined",
        "unknownFutureValue"
      ],
      "type": "string"
    }
  }
}