According to the first item of limitations we can't upload files bigger than 4 Mb to OneNote page via create or update page request (using multipart request). But using UI we can upload such or even larger files to OneNote page.
Is there some approach or workaround to upload files bigger than 4 Mb to OneNote page using Graph API (or something else)?
Thanks!
The limit is 4MB for Graph API but as noted at the link you provided the OneNote API has a 70MB limit. It uses the basic same structure as the Graph API except a different URL
POST https://www.onenote.com/api/v1.0/me/notes/sections/{id}/pages
vs
POST https://graph.microsoft.com/v1.0/me/onenote/sections/{id}/pages
Related
I have a folder hierarchy in OneDrive containing around 1000 files spread out under those folders. All files are .mp4 files.
When I do a search using the graph api and specify q='.mp4' it returns only 500 files (paged with 200 in each page). I have tried using $top=1000 but then I get one page only with 500 files.
Is there a limit of 500 for the search?
I had the same issue during a customers project, where I requested the users group membership using Microsoft Graph.
For me, the solution was to use the $top parameter as you already mentioned.
GET
https://graph.microsoft.com/v1.0/me/memberOf/?$top=999
I am not aware if there is any kind of limitation or difference as soon as you use the OneDrive Graph endpoint.
I am a Java application developer that wants to use Microsoft Graph API to download onedrive files.
Is there a OneDrive Graph API method that can download multiple files in bulk? Or are you forced to use a file-by-file download approach?
I've googled for a while now to see if I can find some answer to this. I did find: https://onedrive.uservoice.com/forums/262982-onedrive/suggestions/9255150-multiple-file-download-onedrive-for-business
Which states that you can actually use OneDrive web UI to download files in bulk.
But does it exist for API?
I am trying to pin a file or get user pinned files. I am searching through MS Graph API, but could not find any info.
Is there any other API to get user pinned files and pin a file. pinned files appear in client office applications.
This isn't available from the Microsoft Graph API.
I recommend visiting the UserVoice and adding your suggestion.
While implementing file upload using Microsoft Graph API I faced the issue that once I upload file I don't get MIME type of it. I can't send it via API as well as it's not determined automatically. I use resumable upload API:
https://dev.onedrive.com/items/upload_large_files.htm
I was thinking about determining it from the name(extension part) on my side, when I get the name of the file, but I hope there is a better way to do this with OneDrive Microsoft Graph API.
I've recently migrated our webapp from GDocs to GDrive and I've noticed that even the files.list call takes about 3x longer (~2.5 seconds) than the corresponding Docs call.
This doesn't seem to depend on the size of the response (in fact Docs' XML is larger than Drive's JSON in my test). I've also experienced the same behaviour when doing simple requests via Google's OAuth Playground, so I'd rule out any local connectivity or library issues.
Is there any way to speed up the API calls?
Check the Google Drive SDK documentation for performance tips:
https://developers.google.com/drive/performance
Tips include using gzip and partial response/update.