I'm excited to announce yet another new feature to our API. As mentioned in our Notebook Hierarchy Recall Preview and OneNote API Near-Term Roadmap blog posts, we are already working on enabling developers to get a list of a user's Notebooks and Sections and choose specific locations to create new pages in. However, we are excited to announce a new feature today that is lighter-weight, yet still meets a need that many of you have sent us feedback about.
We now support a sectionName query parameter on our ~/pages endpoint. This allows you to specify a section name that you want the page created in within the user's default notebook. (If you don't specify a section name, the page will be created in the default location.)
The idea here is that in your app's code, you can choose a specific section to create all of your pages in. For example: if you are writing an app about collecting recipes, you may want all of the pages to go to a section called "Recipes" and would call ~/pages?sectionName=Recipes.
To use this new feature, just append the sectionName query term to the ~/pages endpoint. An example would look like:
You can also try out this feature now in our APIGee Console.
The following are some things to keep in mind:
Stay tuned for more new features and announcements!
I tried to create a sample page using REST api, but response return me following error.
The remote server returned an error: (401) Unauthorized.
AccessToken and other information are correct. Do you have any idea on this...??
Asanka - Email me @ snovick [at] microsoft.com and I'll see how I can help.
Done, Please check. Thank you very much for the great help. :-)