Skip to content

Document POST .../items/{item-id}/createUploadSession - #56

Open
dschmidt wants to merge 1 commit into
mainfrom
spec/create-upload-session
Open

Document POST .../items/{item-id}/createUploadSession#56
dschmidt wants to merge 1 commit into
mainfrom
spec/create-upload-session

Conversation

@dschmidt

@dschmidt dschmidt commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Documents POST /v1.0/drives/{drive-id}/items/{item-id}/createUploadSession (CreateUploadSession), which the OpenCloud graph service already serves but the spec never documented. Modeled on the MS Graph createUploadSession endpoint.

The request body (deferCommit, item.name, item.fileSize) reflects the fields the server actually honors; other MS Graph driveItemUploadableProperties are ignored.

For discussion: the 200 response deviates from MS Graph

The documented response reflects what the server returns today (verified live against a running instance), which is not MS-Graph-shaped:

  • the server emits UploadURL (capitalized), not uploadUrl
  • it returns a CS3-specific CS3Protocols array (protocol / upload_endpoint / token / available_checksums) instead of MS Graph's expirationDateTime / nextExpectedRanges

Documented as-is. Open question for reviewers: should the server be aligned to the MS Graph uploadSession shape and the spec follow that, or is documenting the current CS3 shape the right call?

@dschmidt
dschmidt marked this pull request as ready for review August 5, 2026 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant