codeye
codeye

Reputation: 627

OneNote REST API - How can I reorder pages or sections?

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?

Upvotes: 0

Views: 758

Answers (2)

xiaoniu
xiaoniu

Reputation: 36

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.

ref:Application interface (OneNote 2013)

Upvotes: 2

Jorge Aguirre
Jorge Aguirre

Reputation: 2857

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

Upvotes: 0

Related Questions