Start session
Changed onThis call creates a new upload session. <br/> Upload session allows you to upload a single file in one or more requests (chunks). It is the only way to upload a file larger than 1GB. <br/><note> The maximum size per chunk request is 1GB. </note> <br/><note> When a session is started, it can be used for a maximum of 4 hours. </note> <br/><note> To upload a chunk, you must use the ‘upload_url’ returned from this session opening call : <a href="#">upload/session/start</a>. </note><br/><note> Finally, when all the data have been sent, you should call <a href="./{session_token}/finish">upload/session/finish</a> to close the session and save the file in kDrive. </note> <br/><note> If your file is small (<100MB) we recommend you to use the <a href="../../upload">direct upload route</a> to avoid multiple requests.</note>
Request
- Base URLhttps://api.infomaniak.com
- URLhttps://api.infomaniak.com/3/drive/{drive_id}/upload/session/start
- AuthHTTP bearer
Path parameters
Drive identifier
Query parameters
Optional : Allows loading additional data about a resource, which may include related resources.
Headers
Specify a ETag (Entity tag) who is the identifier for a specific version of file.
Request body
Example request
{
"conflict": "version",
"directory_path": "/Directory/SubDirectory",
"file_name": "file.txt"
}Response
OK
Changes
- warning
added the new
can_not_create_file_here_errorenum value to the//response property for the response status - warning
added the new
limit_exceeded_errorenum value to the//response property for the response status - warning
added the new
upload_destination_not_writable_errorenum value to the//response property for the response status - info
added the non-success response with the status
- warning
- warning
the
request property's min was set to-62135596800.00 - warning
the
request property's min was set to-62135596800.00
- warning