A Microsoft file hosting and synchronization service.
OneDrive API - image property in filter query string parameter returns Bad Request
The following request
https://graph.microsoft.com/v1.0/me/drive/root:/{path}:/children?filter=folder ne null or image ne null
returns Bad Request (code: "notSupported", message: "Operation not supported").
This is strange because my application was working for a very long time and suddenly it throws an error only for one OneDrive account. For other OneDrive accounts the same query works correctly.
The problem here is "image ne null", because the query
https://graph.microsoft.com/v1.0/me/drive/root:/{path}:/children?filter=folder ne null
works correctly.
OneDrive account type is personal.
What happened that suddenly the filter 'image' stopped working only for one account?
Microsoft 365 and Office | OneDrive | For business | Windows
Microsoft Security | Microsoft Graph
An API that connects multiple Microsoft services, enabling data access and automation across platforms