Erstellen Sie die Intune -App -Schutzrichtlinie mit Microsoft.Graph 5.91.0 fehlC#

Ein Treffpunkt für C#-Programmierer
Anonymous
 Erstellen Sie die Intune -App -Schutzrichtlinie mit Microsoft.Graph 5.91.0 fehl

Post by Anonymous »

Ich versuche, Intune App -Schutzrichtlinien zu erstellen. < /p>

Code: Select all

apiClient.DeviceAppManagement.AndroidManagedAppProtections.PostAsync(policyToCreate);
< /code>
Es sendet den folgenden Körper (formatiert): < /p>
{
"id": null,
"@odata.type": "#microsoft.graph.androidManagedAppProtection",
"description": "",
"displayName": "Policy.2",
...
}
< /code>
Dies erzeugt den folgenden Fehler: < /p>

"Code": "modelValidationFailure",

"message": "a null -Wert wurde für die Eigenschaft" id "gefunden. NULL -Werte. ",

Ich habe Graph Explorer verwendet, um es auszuprobieren, und falls ich" ID "entferne: null, 
Alles geht gut - die Richtlinie wird erstellt. Die Frage ist, warum microsoft.kiota.serialization.json.jsonserializationWriter id serialisiert>

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post