Documents

Finalize a presigned upload

Step 3 of the presigned flow: after PUTting the file to the uploadUrl from POST /documents/uploads, call this with the returned storageKey (and token) to register the object. By default it creates a NEW document + first version; pass documentId to register the object as a NEW VERSION of that existing document instead (it keeps its id and share links). The service confirms the object exists inside your workspace before creating any rows. Scope: documents:write.

post/documents/uploads/finalize

Request

  • Base URL
    https://dataroom.corgi.com/api/v1
  • Auth
    HTTP bearer

Request body

storageKeystring required

The storageKey returned by POST /documents/uploads

filenamestring

Override the document name (defaults to the uploaded filename)

contentTypestring

MIME type of the uploaded file (defaults to what storage reports)

folderIdstring

Destination library folder id; omit for the top level

documentIdstring

Register the upload as a new version of this existing document instead of a new document

tokenstring

The token returned by POST /documents/uploads (binds the key to this workspace)

Response

Document (or new version) registered

Changes

No recorded changes to this operation across all 1 revision of this API.