Create folder
const inputBody = '{
"title": "My folder",
"parent": 123
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('https://{instance}.paligoapp.com/api/v2/folders/',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
Body parameter
{
"title": "My folder",
"parent": 123
}
Responses
{
"id": 123,
"name": "My folder",
"uuid": "UUID-1234-5678",
"type": "folder",
"children": [
{
"id": "456",
"name": "My subfolder",
"uuid": "UUID-5678-1234",
"type": "folder"
}
]
}