Microsoft Graph · Schema

microsoft.graph.request

Azure ADCollaborationContactsDocumentsEmailGraphIdentityMicrosoftOffice 365PresentationsProductivitySpreadsheetsT1Tasks
View JSON Schema on GitHub

JSON Schema

microsoft-graph-microsoftgraphrequest-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/microsoft.graph.request",
  "title": "microsoft.graph.request",
  "allOf": [
    {
      "$ref": "#/components/schemas/microsoft.graph.entity"
    },
    {
      "title": "request",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "approvalId": {
          "type": "string",
          "description": "The identifier of the approval of the request.",
          "nullable": true
        },
        "completedDateTime": {
          "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 request completion date time.",
          "format": "date-time",
          "nullable": true
        },
        "createdBy": {
          "anyOf": [
            {
              "$ref": "#/components/schemas/microsoft.graph.identitySet"
            },
            {
              "type": "object",
              "nullable": true
            }
          ],
          "description": "The principal that created the request."
        },
        "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": "The request creation date time.",
          "format": "date-time",
          "nullable": true
        },
        "customData": {
          "type": "string",
          "description": "Free text field to define any custom data for the request. Not used.",
          "nullable": true
        },
        "status": {
          "type": "string",
          "description": "The status of the request. Not nullable. The possible values are: Canceled, Denied, Failed, Granted, PendingAdminDecision, PendingApproval, PendingProvisioning, PendingScheduleCreation, Provisioned, Revoked, and ScheduleCreated. Not nullable."
        },
        "@odata.type": {
          "type": "string"
        }
      },
      "discriminator": {
        "propertyName": "@odata.type",
        "mapping": {
          "#microsoft.graph.privilegedAccessScheduleRequest": "#/components/schemas/microsoft.graph.privilegedAccessScheduleRequest",
          "#microsoft.graph.privilegedAccessGroupAssignmentScheduleRequest": "#/components/schemas/microsoft.graph.privilegedAccessGroupAssignmentScheduleRequest",
          "#microsoft.graph.privilegedAccessGroupEligibilityScheduleRequest": "#/components/schemas/microsoft.graph.privilegedAccessGroupEligibilityScheduleRequest",
          "#microsoft.graph.unifiedRoleAssignmentScheduleRequest": "#/components/schemas/microsoft.graph.unifiedRoleAssignmentScheduleRequest",
          "#microsoft.graph.unifiedRoleEligibilityScheduleRequest": "#/components/schemas/microsoft.graph.unifiedRoleEligibilityScheduleRequest",
          "#microsoft.graph.userConsentRequest": "#/components/schemas/microsoft.graph.userConsentRequest"
        }
      }
    }
  ]
}