Microsoft Graph · Schema

microsoft.graph.baseItem

Azure ADCollaborationContactsDocumentsEmailGraphIdentityMicrosoftOffice 365PresentationsProductivitySpreadsheetsT1Tasks
View JSON Schema on GitHub

JSON Schema

microsoft-graph-microsoftgraphbaseitem-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/microsoft.graph.baseItem",
  "title": "microsoft.graph.baseItem",
  "allOf": [
    {
      "$ref": "#/components/schemas/microsoft.graph.entity"
    },
    {
      "title": "baseItem",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "createdBy": {
          "anyOf": [
            {
              "$ref": "#/components/schemas/microsoft.graph.identitySet"
            },
            {
              "type": "object",
              "nullable": true
            }
          ],
          "description": "Identity of the user, device, or application that created the item. Read-only."
        },
        "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",
          "description": "Date and time of item creation. Read-only.",
          "format": "date-time"
        },
        "description": {
          "type": "string",
          "description": "Provides a user-visible description of the item. Optional.",
          "nullable": true
        },
        "eTag": {
          "type": "string",
          "description": "ETag for the item. Read-only.",
          "nullable": true
        },
        "lastModifiedBy": {
          "anyOf": [
            {
              "$ref": "#/components/schemas/microsoft.graph.identitySet"
            },
            {
              "type": "object",
              "nullable": true
            }
          ],
          "description": "Identity of the user, device, and application that last modified the item. Read-only."
        },
        "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",
          "description": "Date and time the item was last modified. Read-only.",
          "format": "date-time"
        },
        "name": {
          "type": "string",
          "description": "The name of the item. Read-write.",
          "nullable": true
        },
        "parentReference": {
          "anyOf": [
            {
              "$ref": "#/components/schemas/microsoft.graph.itemReference"
            },
            {
              "type": "object",
              "nullable": true
            }
          ],
          "description": "Parent information, if the item has a parent. Read-write."
        },
        "webUrl": {
          "type": "string",
          "description": "URL that either displays the resource in the browser (for Office file formats), or is a direct link to the file (for other formats). Read-only.",
          "nullable": true
        },
        "createdByUser": {
          "anyOf": [
            {
              "$ref": "#/components/schemas/microsoft.graph.user"
            },
            {
              "type": "object",
              "nullable": true
            }
          ],
          "description": "Identity of the user who created the item. Read-only.",
          "x-ms-navigationProperty": true
        },
        "lastModifiedByUser": {
          "anyOf": [
            {
              "$ref": "#/components/schemas/microsoft.graph.user"
            },
            {
              "type": "object",
              "nullable": true
            }
          ],
          "description": "Identity of the user who last modified the item. Read-only.",
          "x-ms-navigationProperty": true
        },
        "@odata.type": {
          "type": "string"
        }
      },
      "discriminator": {
        "propertyName": "@odata.type",
        "mapping": {
          "#microsoft.graph.baseSitePage": "#/components/schemas/microsoft.graph.baseSitePage",
          "#microsoft.graph.sitePage": "#/components/schemas/microsoft.graph.sitePage",
          "#microsoft.graph.drive": "#/components/schemas/microsoft.graph.drive",
          "#microsoft.graph.driveItem": "#/components/schemas/microsoft.graph.driveItem",
          "#microsoft.graph.list": "#/components/schemas/microsoft.graph.list",
          "#microsoft.graph.listItem": "#/components/schemas/microsoft.graph.listItem",
          "#microsoft.graph.recycleBin": "#/components/schemas/microsoft.graph.recycleBin",
          "#microsoft.graph.recycleBinItem": "#/components/schemas/microsoft.graph.recycleBinItem",
          "#microsoft.graph.sharedDriveItem": "#/components/schemas/microsoft.graph.sharedDriveItem",
          "#microsoft.graph.site": "#/components/schemas/microsoft.graph.site"
        }
      }
    }
  ]
}