GET api/2.0/files/folder/{folderId}/path
Returns a path to the folder with the ID specified in the request.
Name |
Description |
Type |
Example |
folderId
sent in url
|
Folder ID
|
string
|
some text
|
GET api/2.0/files/folder/some+text/path
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json
application/json
{
"status": 0,
"response": [
{
"parentId": 207260230,
"filesCount": 207260230,
"foldersCount": 207260230,
"id": 207260230,
"title": "Some titile",
"access": 1,
"shared": false,
"rootFolderType": 2,
"updatedBy": {
"id": "00000000-0000-0000-0000-000000000000",
"displayName": "Mike Zanyatski",
"title": "Manager",
"avatarSmall": "url to small avatar",
"profileUrl": ""
},
"created": "2023-01-27T05:35:44.7647856Z",
"createdBy": {
"id": "00000000-0000-0000-0000-000000000000",
"displayName": "Mike Zanyatski",
"title": "Manager",
"avatarSmall": "url to small avatar",
"profileUrl": ""
},
"updated": "2023-01-27T05:35:44.7647856Z"
}
]
}
text/xml
<result>
<status>0</status>
<response>
<parentId>207260230</parentId>
<filesCount>207260230</filesCount>
<foldersCount>207260230</foldersCount>
<id>207260230</id>
<title>Some titile</title>
<access>1</access>
<shared>false</shared>
<rootFolderType>2</rootFolderType>
<updatedBy>
<id>00000000-0000-0000-0000-000000000000</id>
<displayName>Mike Zanyatski</displayName>
<title>Manager</title>
<avatarSmall>url to small avatar</avatarSmall>
<profileUrl></profileUrl>
</updatedBy>
<created>2023-01-27T05:35:44.7647856Z</created>
<createdBy>
<id>00000000-0000-0000-0000-000000000000</id>
<displayName>Mike Zanyatski</displayName>
<title>Manager</title>
<avatarSmall>url to small avatar</avatarSmall>
<profileUrl></profileUrl>
</createdBy>
<updated>2023-01-27T05:35:44.7647856Z</updated>
</response>
</result>