I can successfully create a page in OneNote using the Rest API. I can also successfully indent a given page using patch. However, the issue is when I create a page and then want to indent it. I keep getting back:
<Response [404]>
{
"error":{
"code":"20102","message":"The specified resource ID does not exist.","@api.url":"http://aka.ms/onenote-errors#C20102"
}
}
I have tried putting in long delays between the call to create the page and the call to indent it. I have also tried looping over those delays so it will retry the patch every 10s. It is very rare that it actually succeeds within X number of tries.
Is there a better way to indent a newly created page?