/api/server/folder/{id}
Fetch a folder by ID/name. Behavior varies based on public and allowUploads flags.
GET
/api/server/folder/{id}Path Parameters
id*string
Query Parameters
page?number
perpage?number
Default
15sortBy?string
Default
"createdAt"Value in
"id" | "createdAt" | "updatedAt" | "deletesAt" | "name" | "originalName" | "size" | "type" | "views" | "favorite"order?string
Default
"desc"Value in
"asc" | "desc"Response Body
application/json
application/json
{
"folder": {
"id": "string",
"createdAt": "string",
"updatedAt": "string",
"name": "string",
"public": true,
"allowUploads": true,
"parentId": "string",
"userId": "string",
"files": [
{
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z",
"deletesAt": "2019-08-24T14:15:22Z",
"favorite": true,
"id": "string",
"originalName": "string",
"name": "string",
"size": 0,
"type": "string",
"views": 0,
"maxViews": 0,
"password": "string",
"folderId": "string",
"anonymous": true,
"thumbnail": {
"path": "string"
},
"tags": [
{
"id": "string",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z",
"name": "string",
"color": "string",
"files": [
{
"id": "string"
}
]
}
],
"url": "string",
"similarity": 0
}
],
"parent": null,
"children": [
null
],
"_count": {
"children": 0,
"files": 0
}
},
"page": [
{
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z",
"deletesAt": "2019-08-24T14:15:22Z",
"favorite": true,
"id": "string",
"originalName": "string",
"name": "string",
"size": 0,
"type": "string",
"views": 0,
"maxViews": 0,
"password": "string",
"folderId": "string",
"anonymous": true,
"thumbnail": {
"path": "string"
},
"tags": [
{
"id": "string",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z",
"name": "string",
"color": "string",
"files": [
{
"id": "string"
}
]
}
],
"url": "string",
"similarity": 0
}
],
"total": 0,
"pages": 0
}{
"error": "E1000: Invalid request schema",
"code": 1000,
"statusCode": 400
}