user13260866
user13260866

Reputation: 181

OneNote API: Notebook is created always under notebooks folder in OneDrive

I am trying to create OneNote NoteBook using OneNote API. (https://graph.microsoft.com/v1.0/me/onenote/notebooks)

I can see that there is no way to specify a folder path. It always creates a new NoteBook under "notebooks" folder in OneDrive. Is this a limitation of the API?

I could find one old thread on this: Creating OneNote in a specific OneDrive folder

Is this limitation still there? Let me know if anyone knows any fix/workaround for this.

Upvotes: 0

Views: 482

Answers (1)

codeye
codeye

Reputation: 627

Please look at the Create notebook page of Microsoft Graph documentation

As you can see your other options are listed, including POST /sites/{id}/onenote/notebooks - so other sites are possible.

You could try moving it with the OneDrive-API Move a DriveItem to a new folder I suspect this isn't officially supported by MS and will change the id of the NoteBook (as it reflects the eTag/cTag of the drive item) and access via the OneNote-API. I think we discussed this previously under the stack overflow OneNote-API tag.

Upvotes: 0

Related Questions