Procedures
Automation procedures in the Dropbox BDK Book.
Make sure to add the Dropbox BDK Book to your agent before using these automation 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
autorename
If true, Dropbox will automatically rename the folder if a conflict occurs. Defaults to False.
boolean
No
False
Output Concepts
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.
file metadata
or folder metadata
Yes
Output Concepts
item reference
Metadata (FileMetadata, FolderMetadata, or DeletedMetadata) of the deleted item.
deleted metadata
or file metadata
or folder metadata
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
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
file name
The name the file should have in Dropbox (e.g., "Matrices.txt").
text
Yes
dropbox path
The destination folder path in Dropbox where the file will be uploaded (e.g., "/Homework/math" or "/Homework/math/").
text
Yes
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
strict conflict
If true, behaves like 'overwrite' but property groups are not updated.
boolean
No
False
Output Concepts
Last updated
Was this helpful?