We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using a filter to get packages or folder should always work.
GET https://graph.microsoft.com/v1.0/drive/root/children?$filter=package%20ne%20null%20or%20folder%20ne%20null
This request workers pretty fine for drives that contain a package item (OneNote).
For drives without any package item i get the following response:
HTTP/1.1 400 Bad Request Cache-Control: no-store, no-cache, max-age=0, private Transfer-Encoding: chunked Content-Type: application/json Content-Encoding: gzip Vary: Accept-Encoding Strict-Transport-Security: max-age=31536000 request-id: 8c9fc5dd-0494-409c-b4d5-1d4ae003f69a client-request-id: 8c9fc5dd-0494-409c-b4d5-1d4ae003f69a x-ms-ags-diagnostic: {"ServerInfo":{"DataCenter":"Germany West Central","Slice":"E","Ring":"4","ScaleUnit":"000","RoleInstance":"FR1PEPF00000D37"}} Date: Fri, 13 Sep 2024 17:10:10 GMT Connection: close { "error": { "code": "notSupported", "message": "Operation not supported", "innerError": { "date": "2024-09-13T17:10:10", "request-id": "8c9fc5dd-0494-409c-b4d5-1d4ae003f69a", "client-request-id": "8c9fc5dd-0494-409c-b4d5-1d4ae003f69a" } } }
Execute following query to drive without a package item (OneNote).
Thank you.
[ ]: http://aka.ms/onedrive-api-issues [x]: http://aka.ms/onedrive-api-issues
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Category
Expected or Desired Behavior
Using a filter to get packages or folder should always work.
GET https://graph.microsoft.com/v1.0/drive/root/children?$filter=package%20ne%20null%20or%20folder%20ne%20null
Observed Behavior
This request workers pretty fine for drives that contain a package item (OneNote).
For drives without any package item i get the following response:
Steps to Reproduce
Execute following query to drive without a package item (OneNote).
GET https://graph.microsoft.com/v1.0/drive/root/children?$filter=package%20ne%20null%20or%20folder%20ne%20null
Thank you.
[ ]: http://aka.ms/onedrive-api-issues
[x]: http://aka.ms/onedrive-api-issues
The text was updated successfully, but these errors were encountered: