Skip to main content

The VirtualFolder service exposes all the operations available around the VirtualFolder type components.

Virtual folder recovery

The examples below show how to retrieve virtual folders from a list of identifiers.

# <CORE_HOST>: FlowerDocs Core base URL
# <TOKEN>: authentication token
# <IDS>: list of virtual folder identifiers to be retrieved
curl -X GET "<CORE_HOST>/rest/virtualFolder/<IDS>" \
-H "token: <TOKEN>"

Virtual folder creation

The examples below show how to create a list of virtual folders.

# <CORE_HOST>: FlowerDocs Core base URL
# <TOKEN>: authentication token
curl -X POST "<CORE_HOST>/rest/virtualFolder/" \
-H "token: <TOKEN>" \
-H "Content-Type: application/json" \
-d '[
{
"category": "VIRTUAL_FOLDER",
"data": {
"ACL": "acl-dossierclient",
"classId": "DossierClient",
"owner": "jna"
},
"name": "123654 - DOE Jules",
"tags": [
{
"name": "RefClient",
"readOnly": false,
"value": [
"123654"
]
},
{
"name": "PrenomClient",
"readOnly": false,
"value": [
"Jules"
]
},
{
"name": "NomClient",
"readOnly": false,
"value": [
"DOE"
]
}
]
}
]'

Virtual folder modification

This operation updates the data in a virtual folder: tags and data (class identifier, ACL, owner, etc.).

info

This service operates on a cancel and replace basis, so all tag values must be supplied by the service at the time of update. It is therefore advisable to retrieve the virtual folder, make the changes and call the update service.

# <CORE_HOST>: FlowerDocs Core base URL
# <TOKEN>: authentication token
# <IDS>: list of virtual folder identifiers to be updated
curl -X POST "<CORE_HOST>/rest/virtualFolder/<IDS>" \
-H "token: <TOKEN>" \
-H "Content-Type: application/json" \
-d '[
{
"category": "VIRTUAL_FOLDER",
"data": {
"ACL": "acl-dossierclient",
"classId": "DossierClient",
"owner": "jna"
},
"name": "123654 - DOE Marc",
"tags": [
{
"name": "RefClient",
"readOnly": false,
"value": [
"123654"
]
},
{
"name": "PrenomClient",
"readOnly": false,
"value": [
"Marc"
]
},
{
"name": "NomClient",
"readOnly": false,
"value": [
"DOE"
]
}
]
}
]'

Recherche de virtual folder

The search operations all work on the same model as described here.

Virtual folder deletion

The examples below show how to delete a list of virtual folders from a list of identifiers.

# <CORE_HOST>: FlowerDocs Core base URL
# <TOKEN>: authentication token
# <IDS>: list of virtual folder identifiers to be deleted
curl -X DELETE "<CORE_HOST>/rest/virtualFolder/<IDS>" \
-H "token: <TOKEN>"