/api/folder/rename
POST Rename the specified folder.
Parameter
Description
folderId
The folder's ID
folderName
The new name of the folder
Sample Code:
1
var data = {
2
"folderId": "KBHOIWCUO6U9I",
3
"folderName": "New Folder Name"
4
};
5
6
var requestOptions = {
7
method: 'POST',
8
body: JSON.stringify(data),
9
redirect: 'follow'
10
};
11
12
fetch("http://localhost:41595/api/folder/rename", requestOptions)
13
.then(response => response.json())
14
.then(result => console.log(result))
15
.catch(error => console.log('error', error));
Copied!
Results Returned:
1
{
2
"status": "success",
3
"data": {
4
"id": "KBJJSMMVF9WYL",
5
"name": "New Folder Name",
6
"images": [],
7
"folders": [],
8
"modificationTime": 1592409993367,
9
"imagesMappings": {},
10
"tags": [],
11
"children": [],
12
"isExpand": true,
13
"size": 30,
14
"vstype": "folder",
15
"styles": {
16
"depth": 0,
17
"first": false,
18
"last": false
19
},
20
"isVisible": true,
21
"$hashKey": "object:765",
22
"newFolderName": "The Folder Name",
23
"editable": false,
24
"pinyin": "New Folder Name"
25
}
26
}
Copied!
Last modified 1yr ago
Copy link