{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-imported-windows-autopilot-device-identity-schema.json",
  "title": "microsoft.graph.importedWindowsAutopilotDeviceIdentity",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-graph-devicemanagement-importedwindowsautopilotdeviceidentity-api-openapi.yml#/components/schemas/microsoft.graph.importedWindowsAutopilotDeviceIdentity",
  "allOf": [
    {
      "$ref": "#/$defs/microsoft.graph.entity"
    },
    {
      "title": "importedWindowsAutopilotDeviceIdentity",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "assignedUserPrincipalName": {
          "type": [
            "string",
            "null"
          ],
          "description": "UPN of the user the device will be assigned"
        },
        "groupTag": {
          "type": [
            "string",
            "null"
          ],
          "description": "Group Tag of the Windows autopilot device."
        },
        "hardwareIdentifier": {
          "type": [
            "string",
            "null"
          ],
          "description": "Hardware Blob of the Windows autopilot device.",
          "format": "base64url"
        },
        "importId": {
          "type": [
            "string",
            "null"
          ],
          "description": "The Import Id of the Windows autopilot device."
        },
        "productKey": {
          "type": [
            "string",
            "null"
          ],
          "description": "Product Key of the Windows autopilot device."
        },
        "serialNumber": {
          "type": [
            "string",
            "null"
          ],
          "description": "Serial number of the Windows autopilot device."
        },
        "state": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.importedWindowsAutopilotDeviceIdentityState"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "Current state of the imported device."
        },
        "@odata.type": {
          "type": "string"
        }
      },
      "description": "Imported windows autopilot devices."
    }
  ],
  "x-ms-discriminator-value": "#microsoft.graph.importedWindowsAutopilotDeviceIdentity",
  "$defs": {
    "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.importedWindowsAutopilotDeviceIdentityImportStatus": {
      "title": "importedWindowsAutopilotDeviceIdentityImportStatus",
      "enum": [
        "unknown",
        "pending",
        "partial",
        "complete",
        "error"
      ],
      "type": "string",
      "x-ms-enum": {
        "name": "importedWindowsAutopilotDeviceIdentityImportStatus",
        "modelAsString": false,
        "values": [
          {
            "value": "unknown",
            "description": "Unknown status.",
            "name": "unknown"
          },
          {
            "value": "pending",
            "description": "Pending status.",
            "name": "pending"
          },
          {
            "value": "partial",
            "description": "Partial status.",
            "name": "partial"
          },
          {
            "value": "complete",
            "description": "Complete status.",
            "name": "complete"
          },
          {
            "value": "error",
            "description": "Error status.",
            "name": "error"
          }
        ]
      }
    },
    "microsoft.graph.importedWindowsAutopilotDeviceIdentityState": {
      "title": "importedWindowsAutopilotDeviceIdentityState",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "deviceErrorCode": {
          "maximum": 2147483647,
          "minimum": -2147483648,
          "type": "number",
          "description": "Device error code reported by Device Directory Service(DDS).",
          "format": "int32"
        },
        "deviceErrorName": {
          "type": [
            "string",
            "null"
          ],
          "description": "Device error name reported by Device Directory Service(DDS)."
        },
        "deviceImportStatus": {
          "$ref": "#/$defs/microsoft.graph.importedWindowsAutopilotDeviceIdentityImportStatus"
        },
        "deviceRegistrationId": {
          "type": [
            "string",
            "null"
          ],
          "description": "Device Registration ID for successfully added device reported by Device Directory Service(DDS)."
        },
        "@odata.type": {
          "type": "string"
        }
      }
    }
  }
}