PUT api/2.0/files/folder/{folderId}
Renames the selected folder with a new title specified in the request.
Name |
Description |
Type |
Example |
folderId
sent in url
|
Folder ID
|
string
|
some text
|
title
sent in body
|
New title
|
string
|
some text
|
PUT api/2.0/files/folder/some+text
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json
{
"title": "some text"
}
application/json
{
"status": 0,
"response": {
"parentId": 100976627,
"filesCount": 100976627,
"foldersCount": 100976627,
"id": 100976627,
"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": "2022-05-19T15:33:45.4853742Z",
"createdBy": {
"id": "00000000-0000-0000-0000-000000000000",
"displayName": "Mike Zanyatski",
"title": "Manager",
"avatarSmall": "url to small avatar",
"profileUrl": ""
},
"updated": "2022-05-19T15:33:45.4853742Z"
}
}
text/xml
<result>
<status>0</status>
<response>
<parentId>100976627</parentId>
<filesCount>100976627</filesCount>
<foldersCount>100976627</foldersCount>
<id>100976627</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>2022-05-19T15:33:45.4853742Z</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>2022-05-19T15:33:45.4853742Z</updated>
</response>
</result>