I am using the REST API via PHP and iOS to generate multiple notebooks with default sections and pages based on data obtained from a MS SQL server (patient database).
Each patient has their own notebook and a days worth of notebooks are generated (or updated) at the beginning of the day. For efficiencies sake a curl multi wrapper is used (RollingCurlX).
This works fine but the order the sections and pages get processed (and completed) is somewhat random.
Is there a way to reorder the pages or sections similar to what is available in OneNote itself?

- 607
- 3
- 10
2 Answers
This is supported by OneNote API now.
UpdateHierarchy Method
Description
Modifies or updates the hierarchy of notebooks. For example, you can add sections or section groups to a notebook, add a new notebook, move sections within a notebook, change the name of a section, add pages to a section, or change the order of pages within sections.

- 36
- 5
-
Fantastic. Thank you – codeye Nov 13 '17 at 11:02
-
Hi xiaoniu, could you please give me an example of reordering pages in the REST OneNote API. – codeye Apr 02 '18 at 01:11
Currently this isn't supported by the OneNote API. Pages and sections should be ordered in the order you create them. https://dev.onenote.com/
I suggest you create a new suggestion in OneNote API's user voice: https://onenote.uservoice.com/forums/245490-onenote-developer-apis/filters/top
You specifically should ask for two things: OneNote API should support updating/specifying section order OneNote API should support updating/specifying page order

- 2,787
- 3
- 20
- 27