Dropbox
Procedures and concepts for the Dropbox integration.
The following documentation is for Dropbox v1.0.4 (BDK).
Overview
Dropbox provides cloud storage and file synchronization services for seamless file access across devices. This integration enables automated file uploads, downloads, sharing, and folder management within your Dropbox account. Streamline file management and ensure synchronized access to important documents.
Prerequisites
1. Required Books
The following Book(s) need to be added to your agent so it can learn and understand the automation procedures defined within them:
Dropbox
How to Add the Book(s)
Go to Books → All Books.
Search for the name of the book and click on it.
Click on Install or Add Connection to add the book to your agent.
If adding a connection, you'll be prompted for connectivity details.
Connectivity
This section outlines the available methods for connecting to the Book, along with the required configuration details for each.
This books supports the connectivity methods described in this section.In here you will find information about what information is required in order to employ each method.
Connect using Dropbox API key
Connects to the Dropbox API using an API key.
Dropbox API key
The Dropbox API key (long-lived access token) for authentication.
sensitive
Procedures
to create a folder at a path
Creates a folder at the specified path in Dropbox.
Input Concepts
path
The absolute path for the new folder (e.g., "/New Folder Name").
text
Yes
(no default)
autorename
If true, Dropbox will automatically rename the folder if a conflict occurs. Defaults to False.
boolean
No
False
Output Concepts
Examples
to delete an item and get the item reference
Deletes a file or folder in Dropbox using its metadata and returns the metadata of the deleted item.
Input Concepts
item
The FileMetadata or FolderMetadata object representing the item to delete.
dropbox file metadata or dropbox folder metadata
Yes
(no default)
Output Concepts
item reference
Metadata (FileMetadata, FolderMetadata, or DeletedMetadata) of the deleted item.
dropbox deleted metadata or dropbox file metadata or dropbox folder metadata
Examples
to download a file
Downloads a file from Dropbox using its metadata.
Input Concepts
Output Concepts
answer
An IO[bytes] object containing the file content.
file
Examples
to upload a file and get the file reference
Uploads a file to a specific path in Dropbox and returns its metadata.
Max file size 150MB. For larger files, use upload sessions.
Input Concepts
file
The file content as a byte stream (IO).
file
Yes
(no default)
file name
The name the file should have in Dropbox (e.g., "Matrices.txt").
text
Yes
(no default)
dropbox path
The destination folder path in Dropbox where the file will be uploaded (e.g., "/Homework/math" or "/Homework/math/").
text
Yes
(no default)
mode
Selects what to do if a file already exists. Can be "add", "overwrite", or "update".
text
No
add
autorename
If there's a conflict, autorename the file.
boolean
No
True
mute
Whether to mute notifications for this change.
boolean
No
False
client modified timestamp
The client's last modification timestamp (ISO 8601 UTC).
text
No
(no default)
strict conflict
If true, behaves like 'overwrite' but property groups are not updated.
boolean
No
False
Output Concepts
Examples
Concepts
Dropbox folder metadata
Metadata for a folder in Dropbox.
name
The name of the folder.
text
id
The unique ID of the folder.
text
tag
The type of the metadata object, always ".folder".
optional[text]
path_lower
The lowercased path of the folder in the user's Dropbox (optional).
optional[text]
path_display
The display-friendly path of the folder in the user's Dropbox (optional).
optional[text]
A list of property groups associated with the folder (optional).
optional[list of dropbox property group]
Dropbox property group
A group of properties associated with a file.
template_id
The identifier of the property group template.
text
Dropbox folder sharing info
Sharing information for a folder.
read_only
True if the folder is read-only.
boolean
parent_shared_folder_id
The ID of the parent shared folder (optional).
optional[text]
shared_folder_id
The ID of the shared folder (optional).
optional[text]
traverse_only
True if the user can only traverse the folder (optional).
optional[boolean]
no_access
True if the user has no access to the folder (optional).
optional[boolean]
Dropbox file metadata
Metadata for a file in Dropbox.
name
The name of the file.
text
id
The unique ID of the file.
text
client_modified
The client's last modification timestamp (ISO 8601 UTC).
text
server_modified
The server's last modification timestamp (ISO 8601 UTC).
text
rev
A unique revision identifier for the file.
text
size
The size of the file in bytes.
number
is_downloadable
True if the file is downloadable.
boolean
tag
The type of the metadata object, always ".file".
optional[text]
path_lower
The lowercased path of the file in the user's Dropbox (optional).
optional[text]
path_display
The display-friendly path of the file in the user's Dropbox (optional).
optional[text]
A list of property groups associated with the file (optional).
optional[list of dropbox property group]
has_explicit_shared_members
True if the file has explicitly shared members (optional).
optional[boolean]
content_hash
A hash of the file content (optional).
optional[text]
File lock information if the file is locked (optional).
optional[dropbox file lock info]
Dropbox file sharing info
Sharing information for a file.
read_only
True if the file is read-only.
boolean
parent_shared_folder_id
The ID of the parent shared folder (optional).
optional[text]
modified_by
The ID of the last user to modify the file (optional).
optional[text]
Dropbox file lock info
Metadata for a file lock.
is_lockholder
True if the current user is the lockholder.
boolean
lockholder_name
The display name of the lockholder.
text
created
The time the lock was created (optional).
optional[text]
Dropbox deleted metadata
Metadata for a deleted item in Dropbox.
name
The name of the deleted item.
text
id
The unique ID of the deleted item.
text
tag
The type of the metadata object, always ".deleted".
optional[text]
path_lower
The lowercased path of the deleted item (optional).
optional[text]
path_display
The display-friendly path of the deleted item (optional).
optional[text]
A list of property groups associated with the deleted item (optional).
optional[list of dropbox property group]
Last updated
Was this helpful?

