Get list parent files tree for file by link UID
note
[Since 2021.04]
Get list parent files tree for file by link UID.
POST /api/v1/public/{linkUid}/{fileId}/parents HTTP/1.1
- Path parameters
| Parameter | Description |
|---|---|
linkUid | The UID of the link for the folder. |
fileId | The file id. |
- Request parameters
| Parameter | Description |
|---|---|
accessToken | The access token for file |
- Example request
curl 'http://localhost:8080/api/v1/public/2c7d7dcd-b2c9-4e4d-add6-615dbc0f561a/189336250/parents?accessToken=xcgrhtjvnaexntsyhfmqluxpdcekegag' -i -X GET \
-H 'X-co-auth-token: 4c8a83b5f6f01a40211e3487dd870282'
- Example response headers
HTTP/1.1 200 OK
X-co-request-id: 6b4c58714f7343504830726662486165
Content-Type: application/vnd.ncloudtech.cloudoffice.parentlist+json;v=1;charset=UTF-8
Content-Length: 709
[ content of the response is skipped ]
- Example response
HTTP/1.1 200 OK
X-co-request-id: 6b4c58714f7343504830726662486165
Content-Type: application/vnd.ncloudtech.cloudoffice.parentlist+json;v=1;charset=UTF-8
Content-Length: 709
[
{
"parent": {
"id": "189336250",
"filename": "testfile.txt"
},
"links": [
{
"rel": "file",
"href": "http://localhost:8080/api/v1/files/189336250"
}
]
},
{
"parent": {
"id": "189336185",
"filename": "New Folder"
},
"links": [
{
"rel": "file",
"href": "http://localhost:8080/api/v1/files/189336185"
}
]
},
{
"parent": {
"id": "189336130",
"filename": "New Folder"
},
"links": [
{
"rel": "file",
"href": "http://localhost:8080/api/v1/files/189336130"
}
]
}
]