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?
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.