Lodol Docs

Dropbox

API actions for the Dropbox integration.

Dropbox

Upload, download, and organize content in Dropbox.


Create Dropbox folder

Create a new folder in Dropbox.

Parameters

ParameterTypeRequiredDescription
folder_pathstringYesThe path for the new folder (e.g., /Documents/NewFolder).
autorenamebooleanNoAutomatically rename if a folder with the same name exists.

Response

"/Documents/NewFolder"

Delete Dropbox file or folder

Delete a file or folder from Dropbox.

Parameters

ParameterTypeRequiredDescription
target_pathstringYesThe path of the file or folder to delete, for example /folder/file.txt.

Response

true

Download file from Dropbox

Download a file from Dropbox and save it to a location you choose.

Parameters

ParameterTypeRequiredDescription
dropbox_pathstringYesThe Dropbox path of the file to download.
destination_pathstringNoWhere to save the downloaded file. If left blank, a temporary folder is used.

Response

"/tmp/downloaded_file.txt"

List Dropbox folder contents

List the contents of a Dropbox folder.

Parameters

ParameterTypeRequiredDescription
folder_pathstringNoThe Dropbox folder to list. Leave blank for the top level of your Dropbox.
recursivebooleanNoSet to true to also include files inside subfolders.
limitnumberNoMaximum number of items to return (default 200).

Response

[
  "/Documents/file1.txt",
  "/Documents/file2.pdf",
  "/Documents/Subfolder"
]

Upload file to Dropbox

Upload a file to Dropbox at the location you choose.

Parameters

ParameterTypeRequiredDescription
file_pathstringYesThe file to upload to Dropbox.
dropbox_pathstringYesThe destination path in Dropbox (e.g., /folder/file.txt).
autorenamebooleanNoAutomatically rename the file if one with the same name already exists.

Response

"/Documents/uploaded_file.txt"

On this page