@@ -123,6 +123,10 @@ struct ExportInfo
123
123
export_as String?
124
124
"Format to which the file can be exported to."
125
125
126
+ export_options List(String)?
127
+ "Additional formats to which the file can be exported. These values can be
128
+ specified as the export_format in /files/export."
129
+
126
130
example default
127
131
export_as = "xlsx"
128
132
@@ -683,6 +687,8 @@ union ExportError
683
687
path LookupError
684
688
non_exportable
685
689
"This file type cannot be exported. Use :route:`download` instead."
690
+ invalid_export_format
691
+ "The specified export format is not a valid option for this file type."
686
692
retry_error
687
693
"The exportable content is not yet available. Please retry later."
688
694
@@ -692,6 +698,13 @@ struct ExportArg
692
698
path ReadPath
693
699
"The path of the file to be exported."
694
700
701
+ export_format String?
702
+ "The file format to which the file should be exported.
703
+ This must be one of the formats listed in the file's
704
+ export_options returned by :route:`get_metadata`.
705
+ If none is specified, the default format (specified
706
+ in export_as in file metadata) will be used."
707
+
695
708
example default
696
709
path = "/Homework/math/Prime_Numbers.gsheet"
697
710
@@ -711,6 +724,10 @@ struct ExportMetadata
711
724
"A hash based on the exported file content. This field can be used to verify data integrity. Similar to content hash.
712
725
For more information see our :link:`Content hash https://www.dropbox.com/developers/reference/content-hash` page."
713
726
727
+ paper_revision Int64?
728
+ # TODO(jessk): after /files/paper/update is made public, add "which can be used in :route:`paper/update`."
729
+ "If the file is a Paper doc, this gives the latest doc revision."
730
+
714
731
example default
715
732
name = "Prime_Numbers.xlsx"
716
733
size = 7189
@@ -773,7 +790,7 @@ union UploadSessionStartError
773
790
union UploadSessionLookupError
774
791
not_found
775
792
"The upload session ID was not found or has expired. Upload sessions are
776
- valid for 48 hours ."
793
+ valid for 7 days ."
777
794
incorrect_offset UploadSessionOffsetError
778
795
"The specified offset was incorrect. See the value for the
779
796
correct offset. This error may occur when a previous request
@@ -818,7 +835,7 @@ union UploadSessionFinishError
818
835
819
836
union UploadSessionType
820
837
sequential
821
- "Pieces of content are uploaded sequentially one after another. This is the default
838
+ "Pieces of data are uploaded sequentially one after another. This is the default
822
839
behavior."
823
840
concurrent
824
841
"Pieces of data can be uploaded in concurrent RPCs in any order."
@@ -856,10 +873,10 @@ route upload_session/start (UploadSessionStartArg, UploadSessionStartResult, Upl
856
873
A single request should not upload more than 150 MB. The maximum size of
857
874
a file one can upload to an upload session is 350 GB.
858
875
859
- An upload session can be used for a maximum of 48 hours . Attempting
876
+ An upload session can be used for a maximum of 7 days . Attempting
860
877
to use an :field:`UploadSessionStartResult.session_id` with
861
878
:route:`upload_session/append:2` or :route:`upload_session/finish` more
862
- than 48 hours after its creation will return a
879
+ than 7 days after its creation will return a
863
880
:field:`UploadSessionLookupError.not_found`.
864
881
865
882
Calls to this endpoint will count as data transport calls for any Dropbox
@@ -922,9 +939,8 @@ struct UploadSessionCursor
922
939
session_id String
923
940
"The upload session ID (returned by :route:`upload_session/start`)."
924
941
offset UInt64
925
- "The amount of data that has been uploaded so far. We use this to make
926
- sure upload data isn't lost or duplicated in the event of a network
927
- error."
942
+ "Offset in bytes at which data should be appended. We use this to make
943
+ sure upload data isn't lost or duplicated in the event of a network error."
928
944
929
945
example default
930
946
session_id = "1234faaf0678bcde"
@@ -2213,7 +2229,7 @@ route get_thumbnail(ThumbnailArg, FileMetadata, ThumbnailError)
2213
2229
"Get a thumbnail for an image.
2214
2230
2215
2231
This method currently supports files with the following file extensions:
2216
- jpg, jpeg, png, tiff, tif, gif and bmp. Photos that are larger than 20MB
2232
+ jpg, jpeg, png, tiff, tif, gif, webp, ppm and bmp. Photos that are larger than 20MB
2217
2233
in size won't be converted to a thumbnail."
2218
2234
2219
2235
attrs
@@ -2227,7 +2243,7 @@ route get_thumbnail_batch(GetThumbnailBatchArg, GetThumbnailBatchResult, GetThum
2227
2243
"Get thumbnails for a list of images. We allow up to 25 thumbnails in a single batch.
2228
2244
2229
2245
This method currently supports files with the following file extensions:
2230
- jpg, jpeg, png, tiff, tif, gif and bmp. Photos that are larger than 20MB
2246
+ jpg, jpeg, png, tiff, tif, gif, webp, ppm and bmp. Photos that are larger than 20MB
2231
2247
in size won't be converted to a thumbnail."
2232
2248
2233
2249
attrs
@@ -2320,7 +2336,11 @@ struct ThumbnailV2Arg
2320
2336
2321
2337
2322
2338
route get_thumbnail:2(ThumbnailV2Arg, PreviewResult, ThumbnailV2Error)
2323
- "Get a thumbnail for a file."
2339
+ "Get a thumbnail for an image.
2340
+
2341
+ This method currently supports files with the following file extensions:
2342
+ jpg, jpeg, png, tiff, tif, gif, webp, ppm and bmp. Photos that are larger than 20MB
2343
+ in size won't be converted to a thumbnail."
2324
2344
2325
2345
attrs
2326
2346
host = "content"
@@ -2499,6 +2519,10 @@ union GetTemporaryLinkError
2499
2519
their email address :link:`here https://www.dropbox.com/help/317`."
2500
2520
unsupported_file
2501
2521
"Cannot get temporary link to this file type; use :route:`export` instead."
2522
+ not_allowed
2523
+ "The user is not allowed to request a temporary link to the specified file.
2524
+ For example, this can occur if the file is restricted or if the user's links
2525
+ are :link:`banned https://help.dropbox.com/files-folders/share/banned-links`."
2502
2526
2503
2527
route get_temporary_link(GetTemporaryLinkArg, GetTemporaryLinkResult, GetTemporaryLinkError)
2504
2528
"Get a temporary link to stream content of a file. This link will expire in four hours and
0 commit comments