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