Skip to content

Dropbox

Dropbox is a file hosting service that offers cloud storage, file synchronization, personal cloud, and client software.

Categories: file-storage

Type: dropbox/v1


Connections

Version: 1

OAuth2 Authorization Code

Properties

NameLabelTypeControl TypeDescriptionRequired
clientIdClient IdSTRINGTEXTtrue
clientSecretClient SecretSTRINGTEXTtrue

Actions

Copy

Name: copy

Copy a file or folder to a different location in the user’s Dropbox. If the source path is a folder all its contents will be copied.

Properties

NameLabelTypeControl TypeDescriptionRequired
filenameFilenameSTRINGTEXTName of the file with the extension. Don’t fill in if you want a folder.false
from_pathSource PathSTRINGTEXTThe path which the file or folder should be copyed from. Root is /.true
to_pathDestination PathSTRINGTEXTThe path which the file or folder should be copyed to. Root is /.true

Output

Type: OBJECT

Properties

NameTypeControl Type
metadataOBJECT
Properties {STRING(.tag), STRING(name), STRING(path_lower), STRING(path_display), STRING(id)}
OBJECT_BUILDER

JSON Example

{
"label" : "Copy",
"name" : "copy",
"parameters" : {
"filename" : "",
"from_path" : "",
"to_path" : ""
},
"type" : "dropbox/v1/copy"
}

Create New Folder

Name: createFolder

Create a folder at a given path.

Properties

NameLabelTypeControl TypeDescriptionRequired
pathFolder Path/NameSTRINGTEXTThe path of the new folder. Root is /.true

Output

Type: OBJECT

Properties

NameTypeControl Type
metadataOBJECT
Properties {STRING(name), STRING(path_lower), STRING(path_display), STRING(id)}
OBJECT_BUILDER

JSON Example

{
"label" : "Create New Folder",
"name" : "createFolder",
"parameters" : {
"path" : ""
},
"type" : "dropbox/v1/createFolder"
}

Create New Paper File

Name: createTextFile

Create a new .paper file on which you can write at a given path

Properties

NameLabelTypeControl TypeDescriptionRequired
pathPathSTRINGTEXTThe path of the new paper file. Root is /.true
filenameFilenameSTRINGTEXTName of the paper filetrue
textTextSTRINGTEXT_AREAThe text to write into the file.true
autorenameAuto RenameBOOLEAN
Options true, false
SELECTIf there’s a conflict, as determined by mode, have the Dropbox server try to autorename the file to avoid conflict.false
muteMuteBOOLEAN
Options true, false
SELECTNormally, users are made aware of any file modifications in their Dropbox account via notifications in the client software. If true, this tells the clients that this modification shouldn’t result in a user notification.false
strict_conflictStrict ConflictBOOLEAN
Options true, false
SELECTBe more strict about how each WriteMode detects conflict. For example, always return a conflict error when mode = WriteMode.update and the given “rev” doesn’t match the existing file’s “rev”, even if the existing file has been deleted.false

Output

Type: OBJECT

Properties

NameTypeControl Type
urlSTRINGTEXT
resultPathSTRINGTEXT
fileIdSTRINGTEXT
paperRevisionINTEGERINTEGER

JSON Example

{
"label" : "Create New Paper File",
"name" : "createTextFile",
"parameters" : {
"path" : "",
"filename" : "",
"text" : "",
"autorename" : false,
"mute" : false,
"strict_conflict" : false
},
"type" : "dropbox/v1/createTextFile"
}

Delete

Name: delete

Delete the file or folder at a given path. If the path is a folder, all its contents will be deleted too.

Properties

NameLabelTypeControl TypeDescriptionRequired
pathPathSTRINGTEXTPath of the file or folder. Root is /.true
filenameFilenameSTRINGTEXTName of the file. Leave empty if you want to delete a folder.false

Output

Type: OBJECT

Properties

NameTypeControl Type
metadataOBJECT
Properties {STRING(.tag), STRING(name), STRING(path_lower), STRING(path_display), STRING(id)}
OBJECT_BUILDER

JSON Example

{
"label" : "Delete",
"name" : "delete",
"parameters" : {
"path" : "",
"filename" : ""
},
"type" : "dropbox/v1/delete"
}

Name: getFileLink

Get a temporary link to stream content of a file. This link will expire in four hours and afterwards you will get 410 Gone. This URL should not be used to display content directly in the browser. The Content-Type of the link is determined automatically by the file’s mime type.

Properties

NameLabelTypeControl TypeDescriptionRequired
pathNamepath to the FileSTRINGTEXTThe path to the file you want a temporary link to. Root is /.true
filenameFilenameSTRINGTEXTName of the file with the extension. Needs to have a streamable extension (.mp4, .mov, .webm, ect)true

Output

Type: OBJECT

Properties

NameTypeControl Type
metadataOBJECT
Properties {STRING(name), STRING(path_lower), STRING(path_display), STRING(id)}
OBJECT_BUILDER
linkSTRINGTEXT

JSON Example

{
"label" : "Get File Link",
"name" : "getFileLink",
"parameters" : {
"path" : "",
"filename" : ""
},
"type" : "dropbox/v1/getFileLink"
}

List Folder

Name: listFolder

List the contents of a folder.

Properties

NameLabelTypeControl TypeDescriptionRequired
pathPathSTRINGTEXTPath of the filename. Inputting nothing searches root.false

Output

Type: OBJECT

Properties

NameTypeControl Type
entriesARRAY
Items [{{STRING(.tag), STRING(name), STRING(path_lower), STRING(path_Display), STRING(id)}(f)}]
ARRAY_BUILDER

JSON Example

{
"label" : "List Folder",
"name" : "listFolder",
"parameters" : {
"path" : ""
},
"type" : "dropbox/v1/listFolder"
}

Move

Name: move

Move a file or folder to a different location in the user’s Dropbox. If the source path is a folder all its contents will be moved. Note that we do not currently support case-only renaming.

Properties

NameLabelTypeControl TypeDescriptionRequired
filenameFilenameSTRINGTEXTName of the file with the extension. Don’t fill in if you want a folder.false
from_pathSource PathSTRINGTEXTPath in the user’s Dropbox to be moved. Root is /.true
to_pathDestination PathSTRINGTEXTPath in the user’s Dropbox that is the destination. Root is /.true

Output

Type: OBJECT

Properties

NameTypeControl Type
metadataOBJECT
Properties {STRING(.tag), STRING(name), STRING(path_lower), STRING(path_display), STRING(id)}
OBJECT_BUILDER

JSON Example

{
"label" : "Move",
"name" : "move",
"parameters" : {
"filename" : "",
"from_path" : "",
"to_path" : ""
},
"type" : "dropbox/v1/move"
}

Name: search

Searches for files and folders. Can only be used to retrieve a maximum of 10,000 matches. Recent changes may not immediately be reflected in search results due to a short delay in indexing. Duplicate results may be returned across pages. Some results may not be returned.

Properties

NameLabelTypeControl TypeDescriptionRequired
querySearch StringSTRINGTEXTThe string to search for. May match across multiple fields based on the request arguments.true

Output

Type: OBJECT

Properties

NameTypeControl Type
matchesARRAY
Items [{{STRING(.tag)}(match_type), {STRING(.tag), STRING(id), STRING(name), STRING(path_display), STRING(path_lower)}(metadata)}]
ARRAY_BUILDER

JSON Example

{
"label" : "Search",
"name" : "search",
"parameters" : {
"query" : ""
},
"type" : "dropbox/v1/search"
}

Upload File

Name: uploadFile

Create a new file up to a size of 150MB with the contents provided in the request.

Properties

NameLabelTypeControl TypeDescriptionRequired
fileEntryFileFILE_ENTRYFILE_ENTRYThe object property which contains a reference to the file to be written.true
pathDestination PathSTRINGTEXTThe path to which the file should be written.true
filenameFilenameSTRINGTEXTName of the file. Needs to have the appropriate extension.true
autorenameAuto RenameBOOLEAN
Options true, false
SELECTIf there’s a conflict, as determined by mode, have the Dropbox server try to autorename the file to avoid conflict.false
muteMuteBOOLEAN
Options true, false
SELECTNormally, users are made aware of any file modifications in their Dropbox account via notifications in the client software. If true, this tells the clients that this modification shouldn’t result in a user notification.false
strict_conflictStrict ConflictBOOLEAN
Options true, false
SELECTBe more strict about how each WriteMode detects conflict. For example, always return a conflict error when mode = WriteMode.update and the given “rev” doesn’t match the existing file’s “rev”, even if the existing file has been deleted.false

Output

Type: OBJECT

Properties

NameTypeControl Type
idSTRINGTEXT
clientModifiedDATEDATE
serverModifiedDATEDATE
revSTRINGTEXT
sizeINTEGERINTEGER
symlinkInfoOBJECT
Properties {STRING(target)}
OBJECT_BUILDER
sharingInfoOBJECT
Properties {STRING(parentSharedFolderId), STRING(modifiedBy)}
OBJECT_BUILDER
isDownloadableBOOLEAN
Options true, false
SELECT
exportInfoOBJECT
Properties {STRING(exportAs), [STRING](exportOptions)}
OBJECT_BUILDER
propertyGroupsARRAY
Items [{STRING(templateId), [{STRING(name), STRING(value)}](fields)}]
ARRAY_BUILDER
hasExplicitSharedMembersBOOLEAN
Options true, false
SELECT
contentHashSTRINGTEXT
fileLockInfoOBJECT
Properties {BOOLEAN(isLockholder), STRING(lockholderName), STRING(lockholderAccountId), DATE(created)}
OBJECT_BUILDER

JSON Example

{
"label" : "Upload File",
"name" : "uploadFile",
"parameters" : {
"fileEntry" : {
"extension" : "",
"mimeType" : "",
"name" : "",
"url" : ""
},
"path" : "",
"filename" : "",
"autorename" : false,
"mute" : false,
"strict_conflict" : false
},
"type" : "dropbox/v1/uploadFile"
}

Additional instructions


anl-c-dropbox-md

CONNECTION

Setting up OAuth2