rammohan reddy
rammohan reddy

Reputation: 9

How set onenote page as read only using onenote API

I am using onenote graph API to create and update notebook,sections,pages.

Know i want to make onenote page as read only using Onenote Graph API.

Please suggest PATCH or POST Request url to set onenote page as read only

Upvotes: 0

Views: 365

Answers (1)

codeye
codeye

Reputation: 627

I think the only effective way of doing this is by creating a view only link to the Notebook.

The OneNote API only allows this for section groups as described at "Create sharing links on OneNote entities"

POST ../sectiongroups/{id}/GetOrCreateAnonymousSharingLink with {"accessLevel":"View"}

Please see the post "Sharing OneNote Notebook through API" for a different approach (using OneDrive sharing) to try and share either a whole notebook or just notebook section.

Upvotes: 1

Related Questions