Skip to main content
GET
/
v1
/
projects
/
{projectID}
/
disks
/
{diskName}
/
search
Search file or dir in FileBrowser
curl --request GET \
  --url https://{filebrowser-url}/v1/projects/{projectID}/disks/{diskName}/search \
  --header 'Authorization: <api-key>'
{
  "items": [
    {
      "path": "<string>",
      "name": "<string>",
      "size": 123,
      "extension": "<string>",
      "isDir": true,
      "isSymlink": true,
      "targetSymlink": "<string>",
      "type": "<string>",
      "mode": 123,
      "createAt": "<string>",
      "modifiedAt": "<string>"
    }
  ],
  "diskName": "<string>",
  "sorting": {
    "sortType": "<string>",
    "sortDirection": "<string>",
    "page": 123
  }
}

Authorizations

Authorization
string
header
required

Enter the token with the Bearer: prefix, e.g. "Bearer abcde12345". #

Path Parameters

projectID
string
required

The id of your project

diskName
string
required

The name of your disk

Query Parameters

path
string
required

The path of your disk

sortType
string

The sortType for pagination. valid values:["name", "size", "modTime"]

sortDirection
string

The sortDirection for pagination. valid values:["asc", "desc"]

page
number

The page for pagination. min 1

targetPath
string

The targetPath of your disk

Response

Successful operation

items
object[]
diskName
string
sorting
object