Skip to main content
POST
After starting an upload and putting the bytes at its temporary URL, commit the session to create the Drive file. Required scope: drive:write
This endpoint requires the Drive document creation API to be deployed to the selected environment, with Drive enabled.
Use the original API key. The session must belong to the key owner and the resolved chapter. Association-wide keys must specify the original chapter_id again. The API rechecks current folder permissions, the file’s exact size, its signature and available storage quota. On success, it creates the file with inherited permissions and records the upload in the chapter’s activity log.
The file now appears in Drive. The response includes metadata; use its id with Download a Drive File to fetch it with drive:download. A session can be committed once. After an uncertain response, check List Drive Items before starting another upload; listing requires drive:read.

Authorizations

X-API-Key
string
header
required

Query Parameters

chapter_id
integer

Required for association-wide keys; must match the key's chapter for chapter-bound keys.

Body

application/json
upload_session_id
integer
required
Required range: x >= 1
chapter_id
integer

Required for association-wide keys; otherwise the key chapter is used.

Required range: x >= 1

Response

Created

status
enum<string>
Available options:
success
data
object