msgraph-sdk-powershell
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...
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'."
}