Skip to main content
Version: v2026.0.0

The FolderClassService service exhibits all available operations around FolderClass type components.

warning

This refers to physical folders, not virtual folders.

Retrieving folder classes

Retrieving all folder classes​

The examples below show how to retrieve the list of all folder classes present on the scope.

# <CORE_HOST>: FlowerDocs Core base URL
# <TOKEN>: authentication token
curl -X GET "<CORE_HOST>/rest/folderclass" \
-H "token: <TOKEN>"

Retrieving a defined list of folder classes​

The examples below show how to retrieve a list of folder classes from their identifiers.

# <CORE_HOST>: FlowerDocs Core base URL
# <TOKEN>: authentication token
# <IDS>: list of folder class identifiers, separated by commas
curl -X GET "<CORE_HOST>/rest/folderclass/<IDS>" \
-H "token: <TOKEN>"

Creating folder classes

The examples below show how to create a folder class.

# <CORE_HOST>: FlowerDocs Core base URL
# <TOKEN>: authentication token
curl -X POST "<CORE_HOST>/rest/folderclass" \
-H "token: <TOKEN>" \
-H "Content-Type: application/json" \
-d '[
{
"id": "testFolder",
"data": {
"owner": "fadmin",
"ACL": "acl-folder"
},
"tagReferences": [
{
"tagName": "Commentaire",
"mandatory": false,
"multivalued": false,
"technical": false,
"readonly": false,
"order": 1
}
],
"children": [
{
"id": "*",
"category": "FOLDER"
},
{
"id": "*",
"category": "DOCUMENT"
}
],
"category": "FOLDER"
}
]'

Updating folder classes

The examples below show how to update a folder class.

# <CORE_HOST>: FlowerDocs Core base URL
# <TOKEN>: authentication token
# <IDS>: list of folder class identifiers to update, separated by commas
curl -X POST "<CORE_HOST>/rest/folderclass/<IDS>" \
-H "token: <TOKEN>" \
-H "Content-Type: application/json" \
-d '[
{
"id": "testFolder",
"data": {
"owner": "fadmin",
"ACL": "acl-folder"
},
"tagReferences": [
{
"tagName": "Commentaire",
"mandatory": false,
"multivalued": false,
"technical": false,
"readonly": false,
"order": 1
},
{
"tagName": "NumReference",
"mandatory": true,
"multivalued": false,
"technical": false,
"readonly": false,
"order": 2
}
],
"children": [
{
"id": "*",
"category": "FOLDER"
},
{
"id": "*",
"category": "DOCUMENT"
}
],
"category": "FOLDER"
}
]'
warning

When using the REST service, unset fields will be cleared: you must send the entire folder class, not just the fields to modify.

Deleting folder classes

The examples below show how to delete a list of folder classes.

# <CORE_HOST>: FlowerDocs Core base URL
# <TOKEN>: authentication token
# <IDS>: list of folder class identifiers to delete, separated by commas
curl -X DELETE "<CORE_HOST>/rest/folderclass/<IDS>" \
-H "token: <TOKEN>"
warning

Deletion does not perform any checks: you must verify that there are no existing instances before deleting a folder class.