Skip to Content

Files

v4.1.0+

Allows full control for the connected file driver. The API key determines the allowed operations.

List files

GET /api/files/list

Query params:

FieldValueType
pathfolder pathstring

Example:

/api/files/list?path=folder1/subfolder2

Please note, the actual (full) file name includes the folder (e.g. folder1/subfolder2/test2.png).

Exists

GET /api/files/exists

Query params:

FieldValueType
pathfile pathstring

Example:

/api/files/exists?path=folder1/subfolder2/test2.png

Get download URL

GET /api/files/getDownloadUrl

Query params:

FieldValueType
pathfile pathstring

Example:

/api/files/getDownloadUrl?path=folder1/subfolder2/test2.png

Download links for local file system drivers require the Data+ API authentication.

Get upload URL

GET /api/files/getUploadUrl

Query params:

FieldValueType
pathfile pathstring
overwrite (optional)overwrite existing filesboolean

Example:

/api/files/getUploadUrl?path=folder1/subfolder2/test2.png

Upload links for local file system drivers require the Data+ API authentication.

Move/Rename

POST /api/files/move /api/files/rename

Body:

FieldValueType
sourcePathfile pathstring
destinationPathfile pathstring
{ "sourcePath":"folder1/subfolder2/test2.png", "destinationPath":"folder1/subfolder2/test2_new.png" }

Delete

POST /api/files/delete

Delete a file from the file system.

Body:

FieldValueType
pathfile pathstring
{ "path":"folder1/subfolder2/test2.png" }

Create folder

POST /api/files/createFolder

Body:

FieldValueType
pathfolder pathstring
{ "path":"folder1/subfolder2" }

Delete folder

POST /api/files/deleteFolder

Also deletes all files inside the folder.

Body:

FieldValueType
pathfolder pathstring
{ "path":"folder1/subfolder2" }
Last updated on