using Microsoft.Graph.Models;
public static void Main()
var group = new Group{Id = "abc"};
var client = new GraphServiceClient(DelegatedTokenCredential.Create((_, _) => new AccessToken()));
var request = client.Groups["abc"].ToPatchRequestInformation(group);
Console.WriteLine("First: " + ExtractBody(request.Content));
request = client.Groups["abc"].ToPatchRequestInformation(group);
Console.WriteLine("Second: " + ExtractBody(request.Content));
request = client.Groups["abc"].ToPatchRequestInformation(group);
group.DisplayName = "def";
request = client.Groups["abc"].ToPatchRequestInformation(group);
Console.WriteLine("Third: " + ExtractBody(request.Content));
private static string ExtractBody(Stream stream)
using var ms = new MemoryStream();
using var sr = new StreamReader(ms);