Skip to content

Dropbox: Files schemas (part 2)

24 Dropbox schemas with complete fields and constraints.

← Files operations · All schemas

Searches for files and folders — request body — body options account id, file categories, file extensions, file status, filename only, max results, order by, path order by value

FieldTypePresenceDescription and constraints
$JSONRoot
$ (anyOf 1)stringAlternativeOne of: relevance, last_modified_time
$ (anyOf 2)objectAlternative
$ (anyOf 2)..tagstringRequired within parentMust equal: relevance
$ (anyOf 3)objectAlternative
$ (anyOf 3)..tagstringRequired within parentMust equal: last_modified_time
$ (anyOf 4)objectAlternativeA tag this contract version does not list (Dropbox's other).
$ (anyOf 4)..tagstringRequired within parentPattern: ^(?!(?:relevance|last_modified_time)$)

Searches for files and folders — response body

FieldTypePresenceDescription and constraints
$objectRoot
matchesarrayRequired within parent
matches[]ModelEach itemExpand Searches for files and folders — response body — matches item
has_morebooleanRequired within parent
cursorJSONOptional
cursor (anyOf 1)stringAlternativeMinimum length: 1
cursor (anyOf 2)nullAlternative

Referenced models: Searches for files and folders — response body — matches item

Searches for files and folders — response body — matches item

FieldTypePresenceDescription and constraints
$objectRoot
metadataModelRequired within parentExpand Searches for files and folders — response body — matches item metadata
match_typeJSONOptional
match_type (anyOf 1)ModelAlternativeExpand Searches for files and folders — response body — matches item match type value
match_type (anyOf 2)nullAlternative
highlight_spansJSONOptional
highlight_spans (anyOf 1)arrayAlternative
highlight_spans (anyOf 1)[]ModelEach itemExpand Searches for files and folders — response body — matches item highlight spans array item
highlight_spans (anyOf 2)nullAlternative

Referenced models: Searches for files and folders — response body — matches item highlight spans array item, Searches for files and folders — response body — matches item metadata, Searches for files and folders — response body — matches item match type value

Searches for files and folders — response body — matches item highlight spans array item

FieldTypePresenceDescription and constraints
$objectRoot
highlight_strstringRequired within parent
is_highlightedbooleanRequired within parent

Searches for files and folders — response body — matches item match type value

FieldTypePresenceDescription and constraints
$JSONRootIndicates what type of match was found for a given item.
$ (anyOf 1)stringAlternativeKnown values: filename, file_content, filename_and_content, image_content, metadata
$ (anyOf 2)objectAlternative
$ (anyOf 2)..tagstringRequired within parentMust equal: filename
$ (anyOf 3)objectAlternative
$ (anyOf 3)..tagstringRequired within parentMust equal: file_content
$ (anyOf 4)objectAlternative
$ (anyOf 4)..tagstringRequired within parentMust equal: filename_and_content
$ (anyOf 5)objectAlternative
$ (anyOf 5)..tagstringRequired within parentMust equal: image_content
$ (anyOf 6)objectAlternative
$ (anyOf 6)..tagstringRequired within parentMust equal: metadata
$ (anyOf 7)objectAlternativeA tag this contract version does not list (Dropbox's other).
$ (anyOf 7)..tagstringRequired within parentPattern: ^(?!(?:filename|file_content|filename_and_content|image_content|metadata)$)

Searches for files and folders — response body — matches item metadata

FieldTypePresenceDescription and constraints
$JSONRootMetadata for a file, folder or other resource types.
$ (anyOf 1)objectAlternative
$ (anyOf 1)..tagstringRequired within parentMust equal: metadata
$ (anyOf 1).metadataModelRequired within parentExpand Returns the metadata for a file or folder — response body
$ (anyOf 2)objectAlternativeA tag this contract version does not list (Dropbox's other).
$ (anyOf 2)..tagstringRequired within parentPattern: ^(?!(?:metadata)$)

Referenced models: Returns the metadata for a file or folder — response body

Start a batch of upload sessions — request body — body

FieldTypePresenceDescription and constraints
$objectRoot
session_typeJSONOptional
session_type (anyOf 1)ModelAlternativeExpand Start a batch of upload sessions — request body — body session type value
session_type (anyOf 2)nullAlternative
num_sessionsintegerRequired within parentMinimum: 1
Maximum: 1000

Referenced models: Start a batch of upload sessions — request body — body session type value

Start a batch of upload sessions — request body — body session type value

FieldTypePresenceDescription and constraints
$JSONRoot
$ (anyOf 1)stringAlternativeOne of: sequential, concurrent
$ (anyOf 2)objectAlternative
$ (anyOf 2)..tagstringRequired within parentMust equal: sequential
$ (anyOf 3)objectAlternative
$ (anyOf 3)..tagstringRequired within parentMust equal: concurrent
$ (anyOf 4)objectAlternativeA tag this contract version does not list (Dropbox's other).
$ (anyOf 4)..tagstringRequired within parentPattern: ^(?!(?:sequential|concurrent)$)

Start a batch of upload sessions — response body

FieldTypePresenceDescription and constraints
$objectRoot
session_idsarrayRequired within parent
session_ids[]stringEach item

Starts returning the contents of a folder — request body — body

FieldTypePresenceDescription and constraints
$objectRoot
pathstringRequired within parentPattern: ^(?:(/(.|[\r\n])*)?|id:.*|(ns:[0-9]+(/(.|[\r\n])*)?))$
recursivebooleanOptional
include_media_infobooleanOptional
include_deletedbooleanOptional
include_has_explicit_shared_membersbooleanOptional
include_mounted_foldersbooleanOptional
limitJSONOptional
limit (anyOf 1)integerAlternativeMinimum: 1
Maximum: 2000
limit (anyOf 2)nullAlternative
shared_linkJSONOptional
shared_link (anyOf 1)ModelAlternativeExpand Starts returning the contents of a folder — request body — body shared link password, url
shared_link (anyOf 2)nullAlternative
include_property_groupsJSONOptional
include_property_groups (anyOf 1)ModelAlternativeExpand Returns the metadata for a file or folder — request body — body include property groups value
include_property_groups (anyOf 2)nullAlternative
include_non_downloadable_filesbooleanOptional
include_restorable_infobooleanOptional

Referenced models: Returns the metadata for a file or folder — request body — body include property groups value, Starts returning the contents of a folder — request body — body shared link password, url

Starts returning the contents of a folder — request body — body shared link password, url

FieldTypePresenceDescription and constraints
$objectRoot
urlstringRequired within parent
passwordJSONOptional
password (anyOf 1)stringAlternative
password (anyOf 2)nullAlternative

Starts returning the contents of a folder — response body

FieldTypePresenceDescription and constraints
$objectRoot
entriesarrayRequired within parent
entries[]ModelEach itemExpand Returns the metadata for a file or folder — response body
cursorstringRequired within parentMinimum length: 1
has_morebooleanRequired within parent

Referenced models: Returns the metadata for a file or folder — response body

This route helps you commit many files at once into a user's Dropbox — request body — body

FieldTypePresenceDescription and constraints
$objectRoot
entriesarrayRequired within parentMaximum items: 1000
entries[]ModelEach itemExpand Finish an upload session and save the uploaded data to the given file path — request body — headers Dropbox-API-Arg

Referenced models: Finish an upload session and save the uploaded data to the given file path — request body — headers Dropbox-API-Arg

This route helps you commit many files at once into a user's Dropbox — response body

FieldTypePresenceDescription and constraints
$objectRoot
entriesarrayRequired within parent
entries[]ModelEach itemExpand This route helps you commit many files at once into a user's Dropbox — response body — entries item

Referenced models: This route helps you commit many files at once into a user's Dropbox — response body — entries item

This route helps you commit many files at once into a user's Dropbox — response body — entries item

FieldTypePresenceDescription and constraints
$JSONRoot
$ (anyOf 1)objectAlternative
$ (anyOf 1)..tagstringRequired within parentMust equal: success
$ (anyOf 1).namestringRequired within parent
$ (anyOf 1).path_lowerJSONOptional
$ (anyOf 1).path_lower (anyOf 1)stringAlternative
$ (anyOf 1).path_lower (anyOf 2)nullAlternative
$ (anyOf 1).path_displayJSONOptional
$ (anyOf 1).path_display (anyOf 1)stringAlternative
$ (anyOf 1).path_display (anyOf 2)nullAlternative
$ (anyOf 1).parent_shared_folder_idJSONOptional
$ (anyOf 1).parent_shared_folder_id (anyOf 1)stringAlternativePattern: ^(?:[-_0-9a-zA-Z:]+)$
$ (anyOf 1).parent_shared_folder_id (anyOf 2)nullAlternative
$ (anyOf 1).preview_urlJSONOptional
$ (anyOf 1).preview_url (anyOf 1)stringAlternative
$ (anyOf 1).preview_url (anyOf 2)nullAlternative
$ (anyOf 1).idstringRequired within parentMinimum length: 1
$ (anyOf 1).client_modifiedstringRequired within parent
$ (anyOf 1).server_modifiedstringRequired within parent
$ (anyOf 1).revstringRequired within parentMinimum length: 9
Pattern: ^(?:[0-9a-f]+)$
$ (anyOf 1).sizeJSONRequired within parent
$ (anyOf 1).size (anyOf 1)integerAlternativeMinimum: 0
$ (anyOf 1).size (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
$ (anyOf 1).media_infoJSONOptional
$ (anyOf 1).media_info (anyOf 1)ModelAlternativeExpand Restore a specific revision of a file to the given path — response body — media info value
$ (anyOf 1).media_info (anyOf 2)nullAlternative
$ (anyOf 1).symlink_infoJSONOptional
$ (anyOf 1).symlink_info (anyOf 1)ModelAlternativeExpand Restore a specific revision of a file to the given path — response body — symlink info target
$ (anyOf 1).symlink_info (anyOf 2)nullAlternative
$ (anyOf 1).sharing_infoJSONOptional
$ (anyOf 1).sharing_info (anyOf 1)ModelAlternativeExpand Restore a specific revision of a file to the given path — response body — sharing info modified by, parent shared folder id, read only
$ (anyOf 1).sharing_info (anyOf 2)nullAlternative
$ (anyOf 1).is_downloadablebooleanOptional
$ (anyOf 1).export_infoJSONOptional
$ (anyOf 1).export_info (anyOf 1)ModelAlternativeExpand Restore a specific revision of a file to the given path — response body — export info Export information for a file
$ (anyOf 1).export_info (anyOf 2)nullAlternative
$ (anyOf 1).property_groupsJSONOptional
$ (anyOf 1).property_groups (anyOf 1)arrayAlternative
$ (anyOf 1).property_groups (anyOf 1)[]ModelEach itemExpand Add property groups to a Dropbox file — request body — body property groups item
$ (anyOf 1).property_groups (anyOf 2)nullAlternative
$ (anyOf 1).has_explicit_shared_membersJSONOptional
$ (anyOf 1).has_explicit_shared_members (anyOf 1)booleanAlternative
$ (anyOf 1).has_explicit_shared_members (anyOf 2)nullAlternative
$ (anyOf 1).content_hashJSONOptional
$ (anyOf 1).content_hash (anyOf 1)stringAlternativeMaximum length: 64
Minimum length: 64
$ (anyOf 1).content_hash (anyOf 2)nullAlternative
$ (anyOf 1).file_lock_infoJSONOptional
$ (anyOf 1).file_lock_info (anyOf 1)ModelAlternativeExpand Restore a specific revision of a file to the given path — response body — file lock info created, is lockholder, lockholder account id, lockholder name
$ (anyOf 1).file_lock_info (anyOf 2)nullAlternative
$ (anyOf 1).is_restorableJSONOptional
$ (anyOf 1).is_restorable (anyOf 1)booleanAlternative
$ (anyOf 1).is_restorable (anyOf 2)nullAlternative
$ (anyOf 2)objectAlternative
$ (anyOf 2)..tagstringRequired within parentMust equal: failure
$ (anyOf 2).failureModelRequired within parentExpand This route helps you commit many files at once into a user's Dropbox — response body — entries item tag failure failure

Referenced models: Add property groups to a Dropbox file — request body — body property groups item, Restore a specific revision of a file to the given path — response body — export info Export information for a file, Restore a specific revision of a file to the given path — response body — file lock info created, is lockholder, lockholder account id, lockholder name, Restore a specific revision of a file to the given path — response body — sharing info modified by, parent shared folder id, read only, Restore a specific revision of a file to the given path — response body — symlink info target, Restore a specific revision of a file to the given path — response body — media info value, This route helps you commit many files at once into a user's Dropbox — response body — entries item tag failure failure

This route helps you commit many files at once into a user's Dropbox — response body — entries item tag failure failure

FieldTypePresenceDescription and constraints
$JSONRoot
$ (anyOf 1)stringAlternativeKnown values: too_many_shared_folder_targets, too_many_write_operations, concurrent_session_data_not_allowed, concurrent_session_not_closed, concurrent_session_missing_data, payload_too_large, content_hash_mismatch, encryption_not_supported
$ (anyOf 2)objectAlternative
$ (anyOf 2)..tagstringRequired within parentMust equal: lookup_failed
$ (anyOf 2).lookup_failedModelRequired within parentExpand This route helps you commit many files at once into a user's Dropbox — response body — entries item tag failure failure tag lookup failed lookup failed
$ (anyOf 3)objectAlternative
$ (anyOf 3)..tagstringRequired within parentMust equal: path
$ (anyOf 3).pathModelRequired within parentExpand Check the status of a save url job — response body — tag failed failed tag path path
$ (anyOf 4)objectAlternative
$ (anyOf 4)..tagstringRequired within parentMust equal: properties_error
$ (anyOf 4).properties_errorModelRequired within parentExpand This route helps you commit many files at once into a user's Dropbox — response body — entries item tag failure failure tag properties error properties error
$ (anyOf 5)objectAlternative
$ (anyOf 5)..tagstringRequired within parentMust equal: too_many_shared_folder_targets
$ (anyOf 6)objectAlternative
$ (anyOf 6)..tagstringRequired within parentMust equal: too_many_write_operations
$ (anyOf 7)objectAlternative
$ (anyOf 7)..tagstringRequired within parentMust equal: concurrent_session_data_not_allowed
$ (anyOf 8)objectAlternative
$ (anyOf 8)..tagstringRequired within parentMust equal: concurrent_session_not_closed
$ (anyOf 9)objectAlternative
$ (anyOf 9)..tagstringRequired within parentMust equal: concurrent_session_missing_data
$ (anyOf 10)objectAlternative
$ (anyOf 10)..tagstringRequired within parentMust equal: payload_too_large
$ (anyOf 11)objectAlternative
$ (anyOf 11)..tagstringRequired within parentMust equal: content_hash_mismatch
$ (anyOf 12)objectAlternative
$ (anyOf 12)..tagstringRequired within parentMust equal: encryption_not_supported
$ (anyOf 13)objectAlternativeA tag this contract version does not list (Dropbox's other).
$ (anyOf 13)..tagstringRequired within parentPattern: ^(?!(?:lookup_failed|path|properties_error|too_many_shared_folder_targets|too_many_write_operations|concurrent_session_data_not_allowed|concurrent_session_not_closed|concurrent_session_missing_data|payload_too_large|content_hash_mismatch|encryption_not_supported)$)

Referenced models: This route helps you commit many files at once into a user's Dropbox — response body — entries item tag failure failure tag properties error properties error, This route helps you commit many files at once into a user's Dropbox — response body — entries item tag failure failure tag lookup failed lookup failed, Check the status of a save url job — response body — tag failed failed tag path path

This route helps you commit many files at once into a user's Dropbox — response body — entries item tag failure failure tag lookup failed lookup failed

FieldTypePresenceDescription and constraints
$JSONRoot
$ (anyOf 1)stringAlternativeKnown values: not_found, closed, not_closed, too_large, concurrent_session_invalid_offset, concurrent_session_invalid_data_size, payload_too_large
$ (anyOf 2)objectAlternative
$ (anyOf 2)..tagstringRequired within parentMust equal: not_found
$ (anyOf 3)objectAlternative
$ (anyOf 3)..tagstringRequired within parentMust equal: incorrect_offset
$ (anyOf 3).correct_offsetJSONRequired within parent
$ (anyOf 3).correct_offset (anyOf 1)integerAlternativeMinimum: 0
$ (anyOf 3).correct_offset (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
$ (anyOf 4)objectAlternative
$ (anyOf 4)..tagstringRequired within parentMust equal: closed
$ (anyOf 5)objectAlternative
$ (anyOf 5)..tagstringRequired within parentMust equal: not_closed
$ (anyOf 6)objectAlternative
$ (anyOf 6)..tagstringRequired within parentMust equal: too_large
$ (anyOf 7)objectAlternative
$ (anyOf 7)..tagstringRequired within parentMust equal: concurrent_session_invalid_offset
$ (anyOf 8)objectAlternative
$ (anyOf 8)..tagstringRequired within parentMust equal: concurrent_session_invalid_data_size
$ (anyOf 9)objectAlternative
$ (anyOf 9)..tagstringRequired within parentMust equal: payload_too_large
$ (anyOf 10)objectAlternativeA tag this contract version does not list (Dropbox's other).
$ (anyOf 10)..tagstringRequired within parentPattern: ^(?!(?:not_found|incorrect_offset|closed|not_closed|too_large|concurrent_session_invalid_offset|concurrent_session_invalid_data_size|payload_too_large)$)

This route helps you commit many files at once into a user's Dropbox — response body — entries item tag failure failure tag properties error properties error

FieldTypePresenceDescription and constraints
$JSONRoot
$ (anyOf 1)stringAlternativeKnown values: restricted_content, unsupported_folder, property_field_too_large, does_not_fit_template, duplicate_property_groups
$ (anyOf 2)objectAlternative
$ (anyOf 2)..tagstringRequired within parentMust equal: template_not_found
$ (anyOf 2).template_not_foundstringRequired within parentMinimum length: 1
Pattern: ^(?:(/|ptid:).*)$
$ (anyOf 3)objectAlternative
$ (anyOf 3)..tagstringRequired within parentMust equal: restricted_content
$ (anyOf 4)objectAlternative
$ (anyOf 4)..tagstringRequired within parentMust equal: path
$ (anyOf 4).pathModelRequired within parentExpand This route helps you commit many files at once into a user's Dropbox — response body — entries item tag failure failure tag properties error properties error tag path path
$ (anyOf 5)objectAlternative
$ (anyOf 5)..tagstringRequired within parentMust equal: unsupported_folder
$ (anyOf 6)objectAlternative
$ (anyOf 6)..tagstringRequired within parentMust equal: property_field_too_large
$ (anyOf 7)objectAlternative
$ (anyOf 7)..tagstringRequired within parentMust equal: does_not_fit_template
$ (anyOf 8)objectAlternative
$ (anyOf 8)..tagstringRequired within parentMust equal: duplicate_property_groups
$ (anyOf 9)objectAlternativeA tag this contract version does not list (Dropbox's other).
$ (anyOf 9)..tagstringRequired within parentPattern: ^(?!(?:template_not_found|restricted_content|path|unsupported_folder|property_field_too_large|does_not_fit_template|duplicate_property_groups)$)

Referenced models: This route helps you commit many files at once into a user's Dropbox — response body — entries item tag failure failure tag properties error properties error tag path path

This route helps you commit many files at once into a user's Dropbox — response body — entries item tag failure failure tag properties error properties error tag path path

FieldTypePresenceDescription and constraints
$JSONRoot
$ (anyOf 1)stringAlternativeKnown values: not_found, not_file, not_folder, restricted_content
$ (anyOf 2)objectAlternative
$ (anyOf 2)..tagstringRequired within parentMust equal: malformed_path
$ (anyOf 2).malformed_pathstringRequired within parent
$ (anyOf 3)objectAlternative
$ (anyOf 3)..tagstringRequired within parentMust equal: not_found
$ (anyOf 4)objectAlternative
$ (anyOf 4)..tagstringRequired within parentMust equal: not_file
$ (anyOf 5)objectAlternative
$ (anyOf 5)..tagstringRequired within parentMust equal: not_folder
$ (anyOf 6)objectAlternative
$ (anyOf 6)..tagstringRequired within parentMust equal: restricted_content
$ (anyOf 7)objectAlternativeA tag this contract version does not list (Dropbox's other).
$ (anyOf 7)..tagstringRequired within parentPattern: ^(?!(?:malformed_path|not_found|not_file|not_folder|restricted_content)$)

Updates an existing Paper doc with the provided content — request body — headers Dropbox-API-Arg

FieldTypePresenceDescription and constraints
$objectRoot
pathstringRequired within parentPattern: ^(?:(/(.|[\r\n])*)|(ns:[0-9]+(/(.|[\r\n])*)?)|(id:.*))$
import_formatModelRequired within parentExpand Creates a new Paper doc with the provided content — request body — headers Dropbox-API-Arg import format
doc_update_policyModelRequired within parentExpand Updates an existing Paper doc with the provided content — request body — headers Dropbox-API-Arg doc update policy
paper_revisionJSONOptional
paper_revision (anyOf 1)integerAlternative
paper_revision (anyOf 2)nullAlternative

Referenced models: Creates a new Paper doc with the provided content — request body — headers Dropbox-API-Arg import format, Updates an existing Paper doc with the provided content — request body — headers Dropbox-API-Arg doc update policy

Updates an existing Paper doc with the provided content — request body — headers Dropbox-API-Arg doc update policy

FieldTypePresenceDescription and constraints
$JSONRoot
$ (anyOf 1)stringAlternativeOne of: update, overwrite, prepend, append
$ (anyOf 2)objectAlternative
$ (anyOf 2)..tagstringRequired within parentMust equal: update
$ (anyOf 3)objectAlternative
$ (anyOf 3)..tagstringRequired within parentMust equal: overwrite
$ (anyOf 4)objectAlternative
$ (anyOf 4)..tagstringRequired within parentMust equal: prepend
$ (anyOf 5)objectAlternative
$ (anyOf 5)..tagstringRequired within parentMust equal: append
$ (anyOf 6)objectAlternativeA tag this contract version does not list (Dropbox's other).
$ (anyOf 6)..tagstringRequired within parentPattern: ^(?!(?:update|overwrite|prepend|append)$)

Updates an existing Paper doc with the provided content — response body

FieldTypePresenceDescription and constraints
$objectRoot
paper_revisionJSONRequired within parent
paper_revision (anyOf 1)integerAlternative
paper_revision (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

Upload sessions allow you to upload a single file in one or more requests, for example where the size of the file is greater than 150 Mi B — request body — headers Dropbox-API-Arg

FieldTypePresenceDescription and constraints
$objectRoot
closebooleanOptional
session_typeJSONOptional
session_type (anyOf 1)ModelAlternativeExpand Start a batch of upload sessions — request body — body session type value
session_type (anyOf 2)nullAlternative
content_hashJSONOptional
content_hash (anyOf 1)stringAlternativeMaximum length: 64
Minimum length: 64
content_hash (anyOf 2)nullAlternative

Referenced models: Start a batch of upload sessions — request body — body session type value

Upload sessions allow you to upload a single file in one or more requests, for example where the size of the file is greater than 150 Mi B — response body

FieldTypePresenceDescription and constraints
$objectRoot
session_idstringRequired within parent

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.