msgraph-sdk-powershell icon indicating copy to clipboard operation
msgraph-sdk-powershell copied to clipboard

Set-MgUserOnenotePageContent_Set // No HTTP resource was found that matches the request URI 'https://www.onenote.com/api/v1.0/users...

Open to-s opened this issue 4 years ago • 0 comments

The goal was to change some content of onenote pages. The download of the content was successful, but the upload gives an error (used ... to hide some personal information).

PS /home/tw> Connect-MgGraph -Scopes "Notes.ReadWrite.All"
PS /home/tw> Get-MgUserOnenotePageContent -OnenotePageId 1-92...21f!1...847 -UserId [email protected] -OutFile ~/onenotepage.html
PS /home/tw> Set-MgUserOnenotePageContent -OnenotePageId 1-92...21f!1...847 -UserId [email protected] -InFile ~/onenotepage.html
Set-MgUserOnenotePageContent_Set: {
  "Message": "No HTTP resource was found that matches the request URI 'https://www.onenote.com/api/v1.0/users('[email protected]')/notes/pages('1-92...21f!1...847')/content'."
}

to-s avatar Jan 26 '22 11:01 to-s