Get the list of nested files by UID
Заметка
[Since 2021.04]
A request to get nested files by public link.
POST /api/v1/public/{linkUid}/children HTTP/1.1
- Path parameters
| Parameter | Description |
|---|---|
linkUid | The UID of the link. |
- Request parameters
| Parameter | Description |
|---|---|
accessToken | The access token for folder |
q | Urlencoded query json object. See Query object structure. |
withHasSubFolder | If flag is true, send hasChildFolders property in response for every child. By default is true. hasChildFolders is true when file has sub folder(s), otherwise false |
- Example request
curl 'http://localhost:8080/api/v1/public/009b3136-6fb8-48cc-8790-f6f641285468/children?q=%7B%22parentId%22%3A%22189399938%22%2C%22searchByContent%22%3Afalse%2C%22searchInShared%22%3Afalse%2C%22searchInCorporate%22%3Afalse%2C%22offset%22%3A-1%2C%22limit%22%3A-1%7D&accessToken=dbewqqrilgjrzrwlgmxqvuhjzatnpfgm' -i -X GET \
-H 'X-co-auth-token: bc15c48e79aa57738e09ada6d12166ff'
- Example response headers
HTTP/1.1 200 OK
X-co-request-id: 5a357855534349486c4a716451335575
Content-Type: application/vnd.ncloudtech.cloudoffice.filelist+json;v=1;charset=UTF-8
Content-Length: 589
[ content of the response is skipped ]
- Example response
HTTP/1.1 200 OK
X-co-request-id: 5a357855534349486c4a716451335575
Content-Type: application/vnd.ncloudtech.cloudoffice.filelist+json;v=1;charset=UTF-8
Content-Length: 589
[
{
"file": {
"id": "189400003",
"mediaType": "text/plain",
"filename": "testfile.txt",
"properties": [
{
"id": "sharedParent",
"key": "sharedParent",
"value": "true"
}
],
"publicLinkId": "e0e102-b9ff40-8902d-bf2279",
"fileSize": "20",
"totalSize": "20",
"modifiedDate": "2022-04-06T16:00:47.000Z",
"createdDate": "2022-04-06T16:00:47.000Z"
},
"links": [
{
"rel": "self",
"href": "http://localhost:8080/api/v1/files/189400003"
}
]
}
]