Files
The path to ensure a directory exists at
The id of the drive we want to make a directory in
The id of the shared root folder
Successful Response
Not found
Validation Error
POST /files/directory HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 115
{
"path": "text",
"drive_id": "123e4567-e89b-12d3-a456-426614174000",
"share_id": "123e4567-e89b-12d3-a456-426614174000"
}
No content
The paths to ensure directories exist at
The id of the drive we want to make a directory in
The id of the shared root folder
Successful Response
Not found
Validation Error
POST /files/directory/batch HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 118
{
"paths": [
"text"
],
"drive_id": "123e4567-e89b-12d3-a456-426614174000",
"share_id": "123e4567-e89b-12d3-a456-426614174000"
}
No content
Move a file or folder to a new location
The path of the file or folder to move
The path to move the file or folder to
The id of the drive containing the file to move
The id of the shared root folder
The new path of the file or folder
Not found
Validation Error
POST /files/move HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 138
{
"source": "text",
"destination": "text",
"drive_id": "123e4567-e89b-12d3-a456-426614174000",
"share_id": "123e4567-e89b-12d3-a456-426614174000"
}
No content
NOTE: this route only works when the sources come from the same folder
The paths of the files or folders to move
The path to move the file or folder to
The id of the drive containing the file to move
The id of the shared root folder
The new path of the file or folder
Not found
Validation Error
POST /files/move/batch HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 144
{
"sources": [
"text"
],
"destinations": [
"text"
],
"drive_id": "123e4567-e89b-12d3-a456-426614174000",
"share_id": "123e4567-e89b-12d3-a456-426614174000"
}
[
"text"
]
Copy a file or folder to a new location
The path of the file or folder to copy
The path to copy the file or folder to
The id of the drive containing the file to copy
The id of the shared root folder
The new path of the file
Not found
Validation Error
POST /files/copy HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 138
{
"source": "text",
"destination": "text",
"drive_id": "123e4567-e89b-12d3-a456-426614174000",
"share_id": "123e4567-e89b-12d3-a456-426614174000"
}
No content
Move a file or folder to the trash
The path of the file or folder to move to the trash
The id of the drive containing the file we want to move to trash
The id of the shared root folder
The new path of the file or folder
Not found
Validation Error
POST /files/trash HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 115
{
"path": "text",
"drive_id": "123e4567-e89b-12d3-a456-426614174000",
"share_id": "123e4567-e89b-12d3-a456-426614174000"
}
No content
Move a file or folder to the trash
The paths of the files or folders to move to the trash
The id of the drive containing the file we want to move to trash
The id of the shared root folder
The new path of the file or folder
Not found
Validation Error
POST /files/trash/batch HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 118
{
"paths": [
"text"
],
"drive_id": "123e4567-e89b-12d3-a456-426614174000",
"share_id": "123e4567-e89b-12d3-a456-426614174000"
}
[
"text"
]
Delete a file or folder
The path of the file or folder to delete
The id of the drive containing the file we want to delete
The id of the shared root folder
The path that was deleted
Not found
Validation Error
POST /files/delete HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 115
{
"path": "text",
"drive_id": "123e4567-e89b-12d3-a456-426614174000",
"share_id": "123e4567-e89b-12d3-a456-426614174000"
}
No content
Delete files or folders in batch
The paths of the files or folders to delete
The id of the drive containing the file we want to delete
The id of the shared root folder
Successful Response
Not found
Validation Error
POST /files/delete/batch HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 118
{
"paths": [
"text"
],
"drive_id": "123e4567-e89b-12d3-a456-426614174000",
"share_id": "123e4567-e89b-12d3-a456-426614174000"
}
[
"text"
]
The path to determine if it exists in the filesystem or not
The id of the drive containing to check if the file exists in
The id of the shared root folder
Successful Response
Not found
Validation Error
GET /files/exists?path=text&drive_id=123e4567-e89b-12d3-a456-426614174000 HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 38
"123e4567-e89b-12d3-a456-426614174000"
true
Get the total size of assets in a directory
The path to retrieve the total size for
The id of the drive this path is in
The id of the share this path is in
Whether or not to include the trash folder in the details, if at the drive root.
true
The details of assets in the specified path directory
Not found
Validation Error
GET /files/details?path=text&drive_id=123e4567-e89b-12d3-a456-426614174000 HTTP/1.1
Host:
Accept: */*
{
"dir_size_bytes": 1,
"dir_num_items": 1
}