How can I track changes to specific OneDrive folder under approot?

%3CLINGO-SUB%20id%3D%22lingo-sub-2229313%22%20slang%3D%22en-US%22%3EHow%20can%20I%20track%20changes%20to%20specific%20OneDrive%20folder%20under%20approot%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2229313%22%20slang%3D%22en-US%22%3E%3CP%3EIn%20the%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fapi%2Fresources%2Fwebhooks%3Fview%3Dgraph-rest-1.0%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3Edocumentation%20for%20webhooks%3C%2FA%3E%2C%20there%20are%20these%20two%20distinct%20paragraphs%3A%3C%2FP%3E%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%26nbsp%3B%3C%2FP%3E%3CP%20class%3D%22lia-indent-padding-left-30px%22%3EdriveItem%20on%20OneDrive%20(personal)%3CBR%20%2F%3EChanges%20to%20content%20within%20the%20hierarchy%20of%20%3CEM%3Eany%3C%2FEM%3E%20folder%3A%3CBR%20%2F%3E%2Fusers%2F%7Bid%7D%2Fdrive%2Froot%3C%2FP%3E%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eand%3A%3C%2FP%3E%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%26nbsp%3B%3C%2FP%3E%3CP%20class%3D%22lia-indent-padding-left-30px%22%3EdriveItem%20on%20OneDrive%20for%20Business%3CBR%20%2F%3EChanges%20to%20content%20within%20the%20hierarchy%20of%20the%20%3CEM%3Eroot%3C%2FEM%3E%20folder%3A%3CBR%20%2F%3E%2Fdrives%2F%7Bid%7D%2Froot%3CBR%20%2F%3E%2Fusers%2F%7Bid%7D%2Fdrive%2Froot%3C%2FP%3E%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20distinction%20between%20%E2%80%9Cany%20folder%E2%80%9D%20and%20%E2%80%9Croot%20folder%E2%80%9D%20makes%20me%20understand%20that%20I%20can%20subscribe%20to%20the%20changes%20of%20a%20specific%20folder%20in%20a%20personal%20OneDrive%20drive.%26nbsp%3B%20This%20is%20for%20an%20backend%20application%20that%20access%20specifically%20an%20app%20folder%20in%20the%20user's%20drive%2C%20under%20the%20associated%20app%20root%20folder.%3C%2FP%3E%3CP%3EHowever%2C%20all%20attempts%20so%20far%20to%20subscribe%20to%20anything%20else%20than%20drive%2Fspecial%2Fapproot%20have%20failed%3B%20other%20attempts%20with%20drive%2Fspecial%2Fapproot%3A%2Fpath%2Fto%2Ffolder%2C%20drive%2Fspecial%2Fapproot%3Apath%2Fto%2Ffolder%2C%20and%20drive%2Fitems%2F%E2%80%B9folder-id%E2%80%BA%20result%20in%204xx%20errors.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDo%20I%20understand%20incorrectly%20the%20documentation%3F%20If%20not%2C%20how%20can%20I%20subscribe%20to%20a%20specific%20folder%20(including%20its%20subfolders%2C%20I%20have%20verified%20that%20this%20is%20the%20case%20as%20documented)%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2229313%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAPIs%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOneDrive%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Regular Visitor

In the documentation for webhooks, there are these two distinct paragraphs:

 

driveItem on OneDrive (personal)
Changes to content within the hierarchy of any folder:
/users/{id}/drive/root

 

and:

 

driveItem on OneDrive for Business
Changes to content within the hierarchy of the root folder:
/drives/{id}/root
/users/{id}/drive/root

 

This distinction between “any folder” and “root folder” makes me understand that I can subscribe to the changes of a specific folder in a personal OneDrive drive.  This is for an backend application that access specifically an app folder in the user's drive, under the associated app root folder.

However, all attempts so far to subscribe to anything else than drive/special/approot have failed; other attempts with drive/special/approot:/path/to/folder, drive/special/approot:path/to/folder, and drive/items/‹folder-id› result in 4xx errors.

 

Do I understand incorrectly the documentation? If not, how can I subscribe to a specific folder (including its subfolders, I have verified that this is the case as documented)?

 

PS In Use the Microsoft Graph API to get change notifications there is this:

On a personal OneDrive, you can subscribe to the root folder or any subfolder in that drive.

 

So again: how do I specify the folder under the approot folder that I can subscribe to?

 

PS please, anyone?
"message": "resource '/drive/root:/Apps/‹my_app_name›' is not supported.",
"message": "resource '/drive/items/xxxxxxxxxxxxxxxx!242' is not supported.",
"message": "resource 'drive/items/xxxxxxxxxxxxxxxx!242' is not supported.",

The only one that works:
{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#subscriptions/$entity",
"id": "xxxxxxxx-xxxx-4xxx-xxxx-xxxxxxxxxxxx",
"resource": "drive/special/approot",

0 Replies