Hi @howard tseng ,
As per my test, using driveitem-createuploadsession on user OneDrive is working fine for .one file extentions.
POST /me/drive/{file-relative-path}:/createUploadSession
{
"item": {
"@microsoft.graph.conflictBehavior": "replace"
}
}
Usage of the is returning 400 Operation not supported error when using with SharePoint libraries.
POST /sites/{site-id}/drive/{file-relative-path}:/createUploadSession
{
"item": {
"@microsoft.graph.conflictBehavior": "replace"
}
}
It appears there is some issue with POST /sites/{siteId}/drive/items/{itemId}/createUploadSession for SharePoint libraries is not working with OneNote(.one) files only. Below is a test with .png files
As it additional troubleshooting, request you to report this by raising a support case a specialized support engineer will assist you better on this.
You can raise technical support request from
https://portal.azure.com/#view/Microsoft_Azure_Support/HelpAndSupportBlade/~/overview or https://admin.microsoft.com/#/support/requests.
Hope this helps.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".