{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-teams/json-schema/microsoft-teams-microsoft-graph-time-card-schema.json",
  "title": "microsoft.graph.timeCard",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-teams-teams-schedule-api-openapi.yml#/components/schemas/microsoft.graph.timeCard",
  "allOf": [
    {
      "$ref": "#/$defs/microsoft.graph.changeTrackedEntity"
    },
    {
      "title": "timeCard",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "breaks": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.timeCardBreak"
          },
          "description": "The list of breaks associated with the timeCard."
        },
        "clockInEvent": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.timeCardEvent"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "The clock-in event of the timeCard."
        },
        "clockOutEvent": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.timeCardEvent"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "The clock-out event of the timeCard."
        },
        "confirmedBy": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.confirmedBy"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "Indicates whether this timeCard entry is confirmed. The possible values are: none, user, manager, unknownFutureValue."
        },
        "notes": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.itemBody"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "Notes about the timeCard."
        },
        "originalEntry": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.timeCardEntry"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "The original timeCardEntry of the timeCard before it was edited."
        },
        "state": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.timeCardState"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "The current state of the timeCard during its life cycle. The possible values are: clockedIn, onBreak, clockedOut, unknownFutureValue."
        },
        "userId": {
          "type": [
            "string",
            "null"
          ],
          "description": "User ID to which the timeCard belongs."
        },
        "@odata.type": {
          "type": "string",
          "default": "#microsoft.graph.timeCard"
        }
      }
    }
  ],
  "x-ms-discriminator-value": "#microsoft.graph.timeCard",
  "$defs": {
    "microsoft.graph.bodyType": {
      "title": "bodyType",
      "enum": [
        "text",
        "html"
      ],
      "type": "string"
    },
    "microsoft.graph.changeTrackedEntity": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.entity"
        },
        {
          "title": "changeTrackedEntity",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "createdBy": {
              "anyOf": [
                {
                  "$ref": "#/$defs/microsoft.graph.identitySet"
                },
                {
                  "type": [
                    "object",
                    "null"
                  ]
                }
              ],
              "description": "Identity of the creator of the entity."
            },
            "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": {
              "anyOf": [
                {
                  "$ref": "#/$defs/microsoft.graph.identitySet"
                },
                {
                  "type": [
                    "object",
                    "null"
                  ]
                }
              ],
              "description": "Identity of the person who last modified the entity.",
              "readOnly": true
            },
            "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
            },
            "@odata.type": {
              "type": "string"
            }
          }
        }
      ]
    },
    "microsoft.graph.confirmedBy": {
      "title": "confirmedBy",
      "enum": [
        "none",
        "user",
        "manager",
        "unknownFutureValue"
      ],
      "type": "string",
      "x-ms-enum-flags": {
        "isFlags": true
      }
    },
    "microsoft.graph.entity": {
      "title": "entity",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The unique identifier for an entity. Read-only."
        },
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.identity": {
      "title": "identity",
      "required": [
        "@odata.type"
      ],
      "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."
        },
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.identitySet": {
      "title": "identitySet",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "application": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.identity"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "Optional. The application associated with this action."
        },
        "device": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.identity"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "Optional. The device associated with this action."
        },
        "user": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.identity"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "Optional. The user associated with this action."
        },
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.itemBody": {
      "title": "itemBody",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "content": {
          "type": [
            "string",
            "null"
          ],
          "description": "The content of the item."
        },
        "contentType": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.bodyType"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "The type of the content. Possible values are text and html."
        },
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.timeCardBreak": {
      "title": "timeCardBreak",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "breakId": {
          "type": [
            "string",
            "null"
          ],
          "description": "ID of the timeCardBreak."
        },
        "end": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.timeCardEvent"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "The start event of the timeCardBreak."
        },
        "notes": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.itemBody"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "Notes about the timeCardBreak."
        },
        "start": {
          "$ref": "#/$defs/microsoft.graph.timeCardEvent"
        },
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.timeCardEntry": {
      "title": "timeCardEntry",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "breaks": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.timeCardBreak"
          },
          "description": "The clock-in event of the timeCard."
        },
        "clockInEvent": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.timeCardEvent"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "The clock-out event of the timeCard."
        },
        "clockOutEvent": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.timeCardEvent"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "The list of breaks associated with the timeCard."
        },
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.timeCardEvent": {
      "title": "timeCardEvent",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "dateTime": {
          "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",
          "description": "The time the entry is recorded.",
          "format": "date-time"
        },
        "isAtApprovedLocation": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "Indicates whether this action happens at an approved location."
        },
        "notes": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.itemBody"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "Notes about the timeCardEvent."
        },
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.timeCardState": {
      "title": "timeCardState",
      "enum": [
        "clockedIn",
        "onBreak",
        "clockedOut",
        "unknownFutureValue"
      ],
      "type": "string"
    }
  }
}