Graph OneNote API changes Paragraph ID on Patch Request

Troy Christmas 1 Reputation point
2022-11-01T05:55:51.317+00:00

I have successfully used the Graph API Explorer to update a paragraph todo item as completed. However, after the replace action, the id of the paragraph is changed so I cannot reliably make any further changes to that paragraph nor track its status.

Three questions:

  1. While the todo item itself has an id, I could not target it via API explorer and just got an error that element was not found. Should I be able to target the todo item directly given it has an id? If not, what is the id there for?
  2. While I was able to target the parent p element to change the todo item to completed, shouldn't the id of the p element remain unchanged or if not, on what actions should we expect the id of an element to change?
  3. Is there a way to reliable target a todo item repeatedly with PATCH to make changes?

References:
https://learn.microsoft.com/en-us/graph/onenote-update-page

Microsoft Graph Notes API
Microsoft Graph Notes API
A Microsoft API that lets your app get authorized access to a user's OneNote notebooks, sections, and pages in a personal or organization account.
47 questions
{count} votes