An API that connects multiple Microsoft services, enabling data access and automation across platforms
Retry the least-privilege App Folder request through the case-sensitive special/approot route without deferCommit; this directly tests whether deferred completion is the rejected part while retaining Files.ReadWrite.AppFolder.
1. Isolate the rejected feature
Address the verified child folder relative to approot:
POST /v1.0/me/drive/special/approot:/<child-path>/CH-1102.docx:/createUploadSession
Authorization: Bearer <token>
Content-Type: application/json
{
"item": {
"name": "CH-1102.docx",
"fileSize": 39154,
"@microsoft.graph.conflictBehavior": "fail"
}
}
approot is case-sensitive. The App Folder documentation says Files.ReadWrite.AppFolder restricts the app to this folder and allows operations on its contents, including uploads.^1^
Interpret the result as follows:
- Session returned: ordinary session creation works under the scoped folder;
deferCommitis the discriminating input. - Same 400: test the same target with a freshly issued delegated
Files.ReadWritetoken. This is a controlled comparison, not proof of the backend cause. - Different error: preserve the complete response and correlation headers.
Do not retry the existing request unchanged: a deterministic 400 is not a transient upload error.
Published permission contract
The action-specific createUploadSession permission table lists delegated Files.ReadWrite as the least-privileged permission for personal Microsoft accounts; it does not list Files.ReadWrite.AppFolder.^2^
Consequently:
- General App Folder documentation indicates that uploads within
approotare supported. - The
createUploadSessioncontract does not establish that this particular action—especially Personal OneDrive deferred completion—is supported with onlyFiles.ReadWrite.AppFolder. - That omission establishes the published support contract, but it does not prove that permission handling caused this specific 400. Only service telemetry can trace the rejection.
If the non-deferred App Folder request still fails, consent delegated Files.ReadWrite, acquire a new access token containing that scope, and repeat the request. Success would validate the documented general flow, but would not establish deferred-commit support under Files.ReadWrite.AppFolder.
Documented Personal OneDrive deferred sequence
Under the documented delegated permission, create the session with:
POST /v1.0/me/drive/items/{parentItemId}:/CH-1102.docx:/createUploadSession
Authorization: Bearer <token>
Content-Type: application/json
{
"item": {
"name": "CH-1102.docx",
"fileSize": 39154,
"@microsoft.graph.conflictBehavior": "fail"
},
"deferCommit": true
}
The path filename must match the body filename. Upload the 39,154 bytes to the returned preauthenticated URL without an Authorization header:
PUT {uploadUrl}
Content-Length: 39154
Content-Range: bytes 0-39153/39154
<39154 bytes>
For Personal OneDrive, explicit completion is a Graph PUT using @microsoft.graph.sourceUrl; the zero-length POST completion method is only supported by OneDrive for Business and SharePoint.^2^
Use the documented parent-path form:
PUT /v1.0/me/drive/root:/<path-to-parent>
Authorization: Bearer <token>
Content-Type: application/json
{
"name": "CH-1102.docx",
"@microsoft.graph.conflictBehavior": "fail",
"@microsoft.graph.sourceUrl": "{uploadUrl}"
}
If another item acquires that name, the documented conflict outcome is 409 Conflict with nameAlreadyExists. However, the published source-URL commit example documents If-Match, not If-None-Match: *. Therefore, an additional atomic create-only guarantee from If-None-Match: * cannot be confirmed for this commit operation. Keep conflict behavior fail, but obtain Microsoft confirmation before relying on that header as a supported concurrency precondition.
Service-side trace
Escalate with the raw headers/body and these exact correlation points:
- Primary Graph request ID:
[GUID] - Client request ID:
[GUID] - HTTP Date:
Fri, 27 Nov 2026 21:29:25 GMT - Client UTC interval:
2026-11-27T21:29:25.147Z–2026-11-27T21:29:26.502Z - Earlier Graph request ID:
[GUID] - Earlier approximate UTC time:
2026-11-27T20:53:42.709Z
Explicitly note that the recorder normalized the nested error date and that correlation should use the HTTP Date and client UTC interval.
References