OneDrive API to create (synched) OneNote (business) Notebook folder
In the case of the OneDrive business, it synchs the OneNote contents under 'Notebooks' folder on OneDrive storage.
With the RET API we can get all the information about this special type of item which works like a folder. And we can download all the files (.one, .toc) inside.
But if we want to 'restore' the contents we just downloaded, we can not create this kind of OneNote sync item.
If we create the normal folder under the 'Notebooks' folder and upload the files under the folder we just created, it will mess up the OneNote API to return an Error.
We can call OneNote API to create this kind of special folder, which is Notebook in OneNote API's view, and if we upload the files inside, it works all right.
But the problem with that approach is that the OneDrive webpage provides the 'Copy To' button for OneNote item there, and if you click on it, it will generate a new OneNote notebook also on the OneNote website. The problem is that you can specify other Folders on OneDrive storage, no matter how many depths it is.
Because OneDrive does not provide an API option to create this kind of 'OneNote synch' item, In case if you want to restore the OneNote notebook item you have to call this API to create a new Notebook.
But because you can not specify the 'path' to where in the OneDrive's storage, it will always create one inside the OneDrive's 'Notebooks' folder. So you can not restore properly the Notebook files that were in some other folder location on OneDrive storage.
Maybe you guys can simply make this API to have the additional option what type of the Folder we want to create? just a normal folder or OneNote sync item.
Basically, you guys enabled the Synch between OneNote and OneDrive and provided the OneDrive API to get all the information of them, but did not provide the API to create that only one specific type. So asking the API consumers to call different API does not make sense. If it takes time, please revise OneNote API to work properly, or disable the synch & copy-to features till your APIs get ready.