**POST** 在文件夹中创建一个的子文件夹。

参数:

| 参数 | 说明 | | —- | —- |s | folderName | 文件夹名 | | parent | 父文件夹 ID |


范例代码:

  1. var data = {
  2. "folderName": "文件夹名称",
  3. "parent": "KRFUPRMIMSNFP"
  4. };
  5. var requestOptions = {
  6. method: 'POST',
  7. body: JSON.stringify(data),
  8. redirect: 'follow'
  9. };
  10. fetch("http://localhost:41595/api/folder/create", requestOptions)
  11. .then(response => response.json())
  12. .then(result => console.log(result))
  13. .catch(error => console.log('error', error));

返回结果:

  1. {
  2. "status": "success",
  3. "data": {
  4. "id": "KBJJSMMVF9WYL",
  5. "name": "文件夹名称",
  6. "images": [],
  7. "folders": [],
  8. "modificationTime": 1592409993367,
  9. "imagesMappings": {},
  10. "tags": [],
  11. "parent": "KRFUPRMIMSNFP",
  12. "children": [],
  13. "isExpand": true
  14. }
  15. }