I cannot create importedDeviceIdentity by using the following API.
https://docs.microsoft.com/en-us/graph/api/intune-enrollment-importeddeviceidentity-create?view=graph-rest-beta
Remote Server Error (400) is returned even if I execute the request using the example in the document.
$url = "https://graph.microsoft.com/beta/deviceManagement/importedDeviceIdentities"
$body = @'
{
"@odata.type": "#microsoft.graph.importedDeviceIdentity",
"importedDeviceIdentifier": "Imported Device Identifier value",
"importedDeviceIdentityType": "imei",
"lastContactedDateTime": "2016-12-31T23:58:44.2908994-08:00",
"description": "Description value",
"enrollmentState": "enrolled",
"platform": "ios"
}
'@
$res = Invoke-RestMethod -Method POST -Uri $url -Headers $header -Body $body -ContentType "application/json"
$res