Skip to main content

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
  1. Path parameters
ParameterDescription
linkUidThe UID of the link for the folder.
fileIdThe file id.
  1. Request parameters
ParameterDescription
accessTokenThe access token for file
  1. 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'
  1. 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 ]
  1. 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"
}
]
}
]