Create new folder
If ParentId = 0 or not defined then the folder is saved to root level.
“FolderRights” and “PropertyValues” are optional.
{
"ParentId": "ParentFolderKey",
"Name": "Folder Name",
"Description": "Folder Desc",
"PropertyValues": [
{
"FieldIdentifier": "TextPropertyFieldKey",
"Value": "PropertyFieldValue"
},
{
"FieldIdentifier": "CheckBoxKey",
"Value": "CheckBox1_Option1"
}
],
"FolderRights": [
{
"AllRights": true,
"UserGroupId": "1"
},
{
"AddAssets": true,
"EditAssets": true,
"DeleteAssets": true,
"UserGroupId": 5
}
]
}
Save existing folder
Below is the example to update the folder name and adding one more number type property field to the existing folder.
if Id = 0 or not defined then folder is saved as new folder.
{
"Id": "Folder Key",
"Name": {
"en": "updatedName",
"fi": "FinnishText"
},
"PropertyValues": [
{
"FieldIdentifier": "NumberTypePropertyFieldKey",
"Value": 5
}
]
}
Move existing folder
Below is the example to move existing folder(and sub folders) under other folder.
{
"Id":"Folder Key",
"ParentId": "Folder key of parent folder"
}
Post your comment on this topic.