0
votes

Is it possible to set the Rule Lines options, under the View tab using the OneNote api.

I've had a look at the page and content end points but can't see anything that suggests itself.

2
This option is currently not supported through the API. I would encourage you to submit your idea to: onenote.uservoice.com/forums/245490-onenote-developer-apis, with enough votes this could get picked up.Yaniro

2 Answers

1
votes

It is possible to achieve this when creating a new page via the api. If you have a template page that is ruled and use page: copyToSection the resultant page will also be ruled.

POST https://graph.microsoft.com/beta/me/notes/pages/<id>/copyToSection
Content-type: application/json
Content-length: 52

{
  "id": "id-value",
  "groupId": "groupId-value"
}
0
votes

Posting Yanir's comment as an answer:

This option is currently not supported through the API. I would encourage you to submit your idea to: onenote.uservoice.com/forums/245490-onenote-developer-apis, so we can explore working on it.