Files

Ensure a directory exists at the given path, creating if needed

post
Header parameters
passwordany ofOptional

The password header to use to fetch the preview

stringOptional
or
nullOptional
Body
pathstring · pathRequired

The path to ensure a directory exists at

drive_idstring · uuidRequired

The id of the drive we want to make a directory in

Responses
chevron-right
200

Successful Response

application/json
Responseany
post
/files/directory

No content

Ensure a list of directories exist at the given path, creating if needed

post
Header parameters
passwordany ofOptional

The password header to use to fetch the preview

stringOptional
or
nullOptional
Body
pathsstring · path[]Required

The paths to ensure directories exist at

drive_idstring · uuidRequired

The id of the drive we want to make a directory in

Responses
chevron-right
200

Successful Response

application/json
Responseany
post
/files/directory/batch

No content

Move a file or folder to a new location

post

Move a file or folder to a new location

Header parameters
passwordany ofOptional

The password header to use to fetch the preview

stringOptional
or
nullOptional
Body
sourcestring · pathRequired

The path of the file or folder to move

destinationstring · pathRequired

The path to move the file or folder to

drive_idstring · uuidRequired

The id of the drive containing the file to move

Responses
chevron-right
200

The new path of the file or folder

application/json
Responseany
post
/files/move

No content

Move a batch of files or folders to a new location

post

NOTE: this route only works when the sources come from the same folder

Header parameters
passwordany ofOptional

The password header to use to fetch the preview

stringOptional
or
nullOptional
Body
sourcesstring · path[]Required

The paths of the files or folders to move

destinationsstring · path[]Required

The path to move the file or folder to

drive_idstring · uuidRequired

The id of the drive containing the file to move

Responses
chevron-right
200

The new path of the file or folder

application/json
Responsestring · path[]
post
/files/move/batch

Copy a file to a new location

post

Copy a file or folder to a new location

Header parameters
passwordany ofOptional

The password header to use to fetch the preview

stringOptional
or
nullOptional
Body
sourcestring · pathRequired

The path of the file or folder to copy

destinationstring · pathRequired

The path to copy the file or folder to

drive_idstring · uuidRequired

The id of the drive containing the file to copy

Responses
chevron-right
200

The new path of the file

application/json
Responseany
post
/files/copy

No content

Move a file or folder to the trash

post

Move a file or folder to the trash

Header parameters
passwordany ofOptional

The password header to use to fetch the preview

stringOptional
or
nullOptional
Body
pathstring · pathRequired

The path of the file or folder to move to the trash

drive_idstring · uuidRequired

The id of the drive containing the file we want to move to trash

share_idany ofOptional

The id of the shared root folder

string · uuidOptional
or
nullOptional
Responses
chevron-right
200

The new path of the file or folder

application/json
Responseany
post
/files/trash

No content

Move a file or folder to the trash

post

Move a file or folder to the trash

Header parameters
passwordany ofOptional

The password header to use to fetch the preview

stringOptional
or
nullOptional
Body
pathsstring · path[]Required

The paths of the files or folders to move to the trash

drive_idstring · uuidRequired

The id of the drive containing the file we want to move to trash

share_idany ofOptional

The id of the shared root folder

string · uuidOptional
or
nullOptional
Responses
chevron-right
200

The new path of the file or folder

application/json
Responsestring · path[]
post
/files/trash/batch

Delete a file or folder

post

Delete a file or folder

Header parameters
passwordany ofOptional

The password header to use to fetch the preview

stringOptional
or
nullOptional
Body
pathstring · pathRequired

The path of the file or folder to delete

drive_idstring · uuidRequired

The id of the drive containing the file we want to delete

share_idany ofOptional

The id of the shared root folder

string · uuidOptional
or
nullOptional
Responses
chevron-right
200

The path that was deleted

application/json
Responseany
post
/files/delete

No content

Delete files or folders in batch

post

Delete files or folders in batch

Header parameters
passwordany ofOptional

The password header to use to fetch the preview

stringOptional
or
nullOptional
Body
pathsstring · path[]Required

The paths of the files or folders to delete

drive_idstring · uuidRequired

The id of the drive containing the file we want to delete

Responses
chevron-right
200

Successful Response

application/json
Responsestring · path[]
post
/files/delete/batch

Retrieve if a path exists or not on filesystem

get
Query parameters
pathstring · pathRequired

The path to determine if it exists in the filesystem or not

drive_idstring · uuidRequired

The id of the drive containing to check if the file exists in

Header parameters
passwordany ofOptional

The password header to use to fetch the preview

stringOptional
or
nullOptional
Body
Responses
chevron-right
200

Successful Response

application/json
Responseboolean
get
/files/exists

Retrieve the storage provider for the files

get
Responses
chevron-right
200

Successful Response

application/json
Responsestring · enumPossible values:
get
/files/storage-provider

Get the details of assets in a path directory

get

Get the total size of assets in a directory

Query parameters
pathstringRequired

The path to retrieve the total size for

drive_idstring · uuidRequired

The id of the drive this path is in

exclude_trashbooleanOptional

Whether or not to include the trash folder in the details, if at the drive root.

Default: true
Header parameters
passwordany ofOptional

The password header to use to fetch the preview

stringOptional
or
nullOptional
Body
Responses
chevron-right
200

The details of assets in the specified path directory

application/json
get
/files/details

Last updated