问题
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
回答1:
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.
来源:https://stackoverflow.com/questions/50369351/how-set-onenote-page-as-read-only-using-onenote-api