I have a VBA macro I'm using to interface with the graphAPI to upload a ton of files to SharePoint Online.
That's working fine.
The issue is changing the contentTypes after the fact. I'm using the createUploadSession method of uploading the file, which treats the document library as a Drive. Evidently, document libraries are somewhat hybrid lists and OneDrive drives. The only way I've found to modify the contentType is to grab the library using the list API and changing the items that way.
However, I can't seem to search or filter the results in graph...based on anything. I've tried etag and createdDateTime, I only get "invalid filter clause" errors.
Is it possible to search or filter listitem results?
UPDATE:
I've found it's possible to do:
/items?$filter=fields/Created lt '{date}'
this isn't ideal. Can I filter by etag or a more identifying property? The title isn't populated by uploading the list.