how to create a folder in the folder tree?
Browse the folder-tree (/api/dam/folder-tree
) down to the folder where you want to create a new sub-folder. Send a POST (create) request in the children
collection of the parent folder with a folder representation in the body :
POST https://baobab.keepeek.com/api/dam/folder-tree/1234/children
Content-Type: application/json
{
"title": "My sub-folder"
}
Api returns the url of the created folder in the Location
response header, ex.: Location : https://baobab.keepeek.com/api/dam/folder-tree/1234/children/5678