Error “request too large (413)” when trying to upload a PDF file to OneNote
I'm trying to create new pages in OneNote using Microsoft Graph REST API (Objective-C). Those new pages should contain a PDF document as an attachment. The POST operations succeed with PDF files that are under ~4MB. However, the operations for files that are over 4MB fail with the error message request too large (413) and the following response: { "error": { "code": "BadRequest", "message": "Maximum request length exceeded.", "innerError": { "request-id": "269c663c-9289-47cc-a833-d471b7b867f6", "date": "2019-04-09T09:35:49" } } } The end point that is used is: https://graph.microsoft.com/v1.0