Search code examples
onenote-api

Get All Sections in a Notebook


I can get all the sections in a Notebook using the OneNote API using the following

 https://www.onenote.com/api/v1.0/notebooks/{notebookId}/sections

But cannot find a reference to the syntax when using the MSGraph API.

I've a number of combinations, but all give Bad Request msgs.

I'm using the Graph Explorer with MS Graph.


Solution

  • You can call the following:

    https://graph.microsoft.com/v1.0/me/onenote/notebooks/{id}/sections