Drive > Files > File/Directory > Upload > Session

Close session

Finish an upload session, verify and save the uploaded data to the kDrive.<br/>

post/3/drive/{drive_id}/upload/session/{session_token}/finish

Path parameters

drive_idinteger required

Drive identifier

session_tokenstring required

Session token uuid

Query parameters

withstring

Optional : Allows loading additional data about a resource, which may include related resources.

Request body

created_atinteger

Override the creation date metadata of the new file.<note>The value of this field will be capped at 24h from the current time.</note>

last_modified_atinteger

Override the update date metadata of the new file.<note>The value of this field will be capped at 24h from the current time.</note>

total_chunk_hashstring

The hash of the content of the file. If provided and the uploaded content does not match this hash, an error will be returned. For a multi-chunk upload use the hash of the concatenation of the chunk's hashes.<note>Supported hashing algorithm: md5, sha1, sha256, sha512, xxh3, xxh32, xxh64, xxh128</note>

Example request

{
  "total_chunk_hash": "xxh3:00ec7bec63e548df"
}

Response

OK

result'success' | 'error' | 'asynchronous' required

Result of the HTTP request

data91ac10ffClosinguploadsession — unresolved $ref

Changes

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