@@ -3015,6 +3015,39 @@ def files_upload_session_finish_batch(self,
30153015 )
30163016 return r
30173017
3018+ def files_upload_session_finish_batch_v2 (self ,
3019+ entries ):
3020+ """
3021+ This route helps you commit many files at once into a user's Dropbox.
3022+ Use :meth:`files_upload_session_start` and
3023+ :meth:`files_upload_session_append_v2` to upload file contents. We
3024+ recommend uploading many files in parallel to increase throughput. Once
3025+ the file contents have been uploaded, rather than calling
3026+ :meth:`files_upload_session_finish`, use this route to finish all your
3027+ upload sessions in a single request. ``UploadSessionStartArg.close`` or
3028+ ``UploadSessionAppendArg.close`` needs to be true for the last
3029+ :meth:`files_upload_session_start` or
3030+ :meth:`files_upload_session_append_v2` call of each upload session. The
3031+ maximum size of a file one can upload to an upload session is 350 GB. We
3032+ allow up to 1000 entries in a single request. Calls to this endpoint
3033+ will count as data transport calls for any Dropbox Business teams with a
3034+ limit on the number of data transport calls allowed per month. For more
3035+ information, see the `Data transport limit page
3036+ <https://www.dropbox.com/developers/reference/data-transport-limit>`_.
3037+
3038+ :param List[:class:`dropbox.files.UploadSessionFinishArg`] entries:
3039+ Commit information for each file in the batch.
3040+ :rtype: :class:`dropbox.files.UploadSessionFinishBatchResult`
3041+ """
3042+ arg = files .UploadSessionFinishBatchArg (entries )
3043+ r = self .request (
3044+ files .upload_session_finish_batch_v2 ,
3045+ 'files' ,
3046+ arg ,
3047+ None ,
3048+ )
3049+ return r
3050+
30183051 def files_upload_session_finish_batch_check (self ,
30193052 async_job_id ):
30203053 """
0 commit comments