/api/folder/create

POST Create a folder. The created folder will be put at the bottom of the folder list of the current library.
Parameter
Description
folderName
The name of the Folder
parent
ID of the parent folder
Sample Code:
var data = {
"folderName": "The Folder Name"
};
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));
Results returned:
{
"status": "success",
"data": {
"id": "KBJJSMMVF9WYL",
"name": "The Folder Name",
"images": [],
"folders": [],
"modificationTime": 1592409993367,
"imagesMappings": {},
"tags": [],
"children": [],
"isExpand": true
}
}