Microsoft Graph · Schema

microsoft.graph.timeOffReason

Azure ADCollaborationContactsDocumentsEmailGraphIdentityMicrosoftOffice 365PresentationsProductivitySpreadsheetsT1Tasks
View JSON Schema on GitHub

JSON Schema

microsoft-graph-microsoftgraphtimeoffreason-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/microsoft.graph.timeOffReason",
  "title": "microsoft.graph.timeOffReason",
  "allOf": [
    {
      "$ref": "#/components/schemas/microsoft.graph.changeTrackedEntity"
    },
    {
      "title": "timeOffReason",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "description": "The code of the timeOffReason to represent an external identifier. This field must be unique within the team in Microsoft Teams and uses an alphanumeric format, with a maximum of 100 characters.",
          "nullable": true
        },
        "displayName": {
          "type": "string",
          "description": "The name of the timeOffReason. Required.",
          "nullable": true
        },
        "iconType": {
          "anyOf": [
            {
              "$ref": "#/components/schemas/microsoft.graph.timeOffReasonIconType"
            },
            {
              "type": "object",
              "nullable": true
            }
          ],
          "description": "Supported icon types are: none, car, calendar, running, plane, firstAid, doctor, notWorking, clock, juryDuty, globe, cup, phone, weather, umbrella, piggyBank, dog, cake, trafficCone, pin, sunny. Required."
        },
        "isActive": {
          "type": "boolean",
          "description": "Indicates whether the timeOffReason can be used when creating new entities or updating existing ones. Required.",
          "nullable": true
        },
        "@odata.type": {
          "type": "string",
          "default": "#microsoft.graph.timeOffReason"
        }
      }
    }
  ],
  "x-ms-discriminator-value": "#microsoft.graph.timeOffReason"
}