Forum Discussion

J3Lda's avatar
J3Lda
Copper Contributor
Oct 31, 2026

Copying pages in OneNote not working

I've been using the CopyToSection function, which copies a OneNote page to another section, to great benefit until about two weeks, when it suddenly stopped working - in Graph Explorer, one can replicate it using

POST beta with query

https://graph.microsoft.com/beta/me/onenote/pages/{page id}/copyToSection

and request body

{

  "id": "{destination section id}"

}

 

Any ideas how to make it work again? Any help would be greatly appreciated.

Thank you,

Jan

2 Replies

  • Your destination-section id matches the documented copyToSection request body, so I would first separate request failure from asynchronous copy failure. The action is available in Microsoft Graph v1.0; reproduce there rather than relying solely on the beta version you are currently testing.

     

    In Graph Explorer, select v1.0, confirm that the signed-in account can access both the source page and destination section, and check the delegated permissions. Microsoft lists Notes.Create as the least-privileged delegated permission for this action.

     

    A successful initial request returns 202 Accepted and an Operation-Location response header. Poll that operation until it completes; acceptance alone does not mean the page has been copied. If the initial request or operation fails, retain the HTTP status, error body, request ID, and timestamp for investigation. Your post does not include those results, so it cannot yet establish whether this is a permission issue, failed operation, or service regression.

    • J3Lda's avatar
      J3Lda
      Copper Contributor

      Hi Jamony, thank you for your response - luckily the copyToSection has apparently been enabled again, as it started working without any changes in my code.

      However, it only works in beta.

      In MS Graph, using the v1.0 returns error 501 (not implemented):

      "error": {

      "code": "20111",

      "message": "OData Feature not implemented. {0}.",

      "innerError": {

      "date": "2026-11-08T11:57:07",

      "request-id": "ac1708ae-8daa-40f4-98d2-9250813ff873",

      "client-request-id": "9491713f-4b9a-5095-75d5-94fa9a3efeaa"

      In beta it returns status 202 and successfully copies the page (I had to omit the id due to Content not permitted error)

      "@odata.context": "https://graph.microsoft.com/beta/$metadata#microsoft.graph.onenoteOperation",

      "id": content not permited - had to delete it

      "status": "not started",

      "createdDateTime": "2026-10-31T21:08:31.587771Z",

      "lastActionDateTime": "2026-10-31T21:08:31.587771Z"


      I would prefer using v1.0 but it doesn't seem to be enabled..