How can I make it work with the Microsoft Graph SDK (.Net and C#) that I can only subscribe to one folder ? (I want to code a webhook based on this).
public async Task<ActionResult<string>> Get() {
var graphServiceClient = GetGraphClient();
var sub = new Microsoft.Graph.Subscription();
sub.ChangeType = "updated";
sub.NotificationUrl = config.Ngrok + "/api/notifications";
sub.Resource = "/drives/{driveID}/root/";
sub.ExpirationDateTime = DateTime.UtcNow.AddMinutes(5);
sub.ClientState = "SecretClientState";
var newSubscription = await graphServiceClient.Subscriptions.Request().AddAsync(sub);
So far I can only subscribe to everything in the root but not to a specific folder in Onedrive.