**POST**
在文件夹中创建一个的子文件夹。
参数:
| 参数 | 说明 | | —- | —- |s | folderName | 文件夹名 | | parent | 父文件夹 ID |
范例代码:
var data = {
"folderName": "文件夹名称",
"parent": "KRFUPRMIMSNFP"
};
var requestOptions = {
method: 'POST',
body: JSON.stringify(data),
redirect: 'follow'
};
fetch("http://localhost:41595/api/folder/create", 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": [],
"parent": "KRFUPRMIMSNFP",
"children": [],
"isExpand": true
}
}