upload_session/finish_batch
POST https://api.dropboxapi.com/2/files/upload_session/finish_batch
scope: files.content.write
This route helps you commit many files at once into a user's Dropbox. Use upload_session/start
and upload_session/append:2
to upload file contents. We recommend uploading many files in parallel to increase throughput. Once the file contents have been uploaded, rather than calling upload_session/finish
, use this route to finish all your upload sessions in a single request.
UploadSessionStartArg.close
or UploadSessionAppendArg.close
needs to be true for the last upload_session/start
or upload_session/append:2
call. The maximum size of a file one can upload to an upload session is 350 GB.
This route will return a jobid immediately and do the async commit job in background. Use `uploadsession/finish_batch/check` to check the job status.
For the same account, this route should be executed serially. That means you should not start the next job before current job finishes. We allow up to 1000 entries in a single request.
Calls to this endpoint will count as data transport calls for any Dropbox Business teams with a limit on the number of data transport calls allowed per month. For more information, see the Data transport limit page.
Request Body
{"entries"=>[{"cursor"=>{"session_id"=>"1234faaf0678bcde", "offset"=>0}, "commit"=>{"path"=>"/Homework/math/Matrices.txt", "mode"=>"add", "autorename"=>true, "mute"=>false, "strict_conflict"=>false}}]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Dropbox-API-Path-Root | string | ||
Dropbox-API-Select-User | string | ||
Dropbox-API-Select-Admin | string |
RESPONSES
status: OK
{".tag":"complete","entries":[{".tag":"success","name":"Prime_Numbers.txt","id":"id:a4ayc_80_OEAAAAAAAAAXw","client_modified":"2015-05-12T15:50:38Z","server_modified":"2015-05-12T15:50:38Z","rev":"a1c10ce0dd78","size":7212,"path_lower":"/homework/math/prime_numbers.txt","path_display":"/Homework/math/Prime_Numbers.txt","sharing_info":{"read_only":true,"parent_shared_folder_id":"84528192421","modified_by":"dbid:AAH4f99T0taONIb-OurWxbNQ6ywGRopQngc"},"is_downloadable":true,"property_groups":[{"template_id":"ptid:1a5n2i6d3OYEAAAAAAAAAYa","fields":[{"name":"Security Policy","value":"Confidential"}]}],"has_explicit_shared_members":false,"content_hash":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","file_lock_info":{"is_lockholder":true,"lockholder_name":"Imaginary User","created":"2015-05-12T15:50:38Z"}}]}