POST 重新命名指定文件夹
参数:
| 参数 | 说明 |
|---|---|
| folderId | 文件夹 ID |
| folderName | 新的文件夹名 |
范例代码:
var data = {"folderId": "KBHOIWCUO6U9I","folderName": "新的名称"};var requestOptions = {method: 'POST',body: JSON.stringify(data),redirect: 'follow'};fetch("http://localhost:41595/api/folder/rename", requestOptions).then(response => response.json()).then(result => console.log(result)).catch(error => console.log('error', error));
返回结果:
{"status": "success","data": {"id": "KBJJSMMVF9WYL","name": "新的名称","images": [],"folders": [],"modificationTime": 1592409993367,"imagesMappings": {},"tags": [],"children": [],"isExpand": true,"size": 30,"vstype": "folder","styles": {"depth": 0,"first": false,"last": false},"isVisible": true,"$$hashKey": "object:765","newFolderName": "文件夹名称","editable": false,"pinyin": "XINDEMINGCHENG"}}
