Skip to main content
Version: v2026.0.0

The StoredSearchService service exhibits all available operations around StoredSearch type components.

Retrieval

Retrieving all stored searches

The examples below show how to retrieve all stored searches of a scope.

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

Retrieving a defined list

The examples below show how to retrieve a list of stored searches from their identifiers.

# <CORE_HOST>: FlowerDocs Core base URL
# <TOKEN>: authentication token
# <IDS>: list of stored search identifiers
curl -X GET "<CORE_HOST>/rest/storedsearch/<IDS>" \
-H "token: <TOKEN>"

Creation

The examples below show how to create a stored search.

# <CORE_HOST>: FlowerDocs Core base URL
# <TOKEN>: authentication token
curl -X POST "<CORE_HOST>/rest/storedsearch" \
-H "token: <TOKEN>" \
-H "Content-Type: application/json" \
-d '[
{
"template": "DefaultSearch",
"data": {
"owner": "phu",
"creationDate": "2024-04-05 14:08:03.790 +0200",
"lastUpdateDate": "2024-04-05 14:08:03.790 +0200",
"ACL": "STORED_SEARCH"
},
"recipients": {
"users": [
"phu"
]
},
"id": "testFolderStoredSearch",
"category": "FOLDER",
"request": {
"selectClause": {
"fields": [
"name",
"classid",
"creationDate"
]
},
"orderClauses": [
{
"name": "creationDate",
"type": "TIMESTAMP",
"ascending": false
}
],
"start": 0,
"max": 10
},
"displayNames": [
{
"value": "test folder stored search",
"language": "EN"
},
{
"value": "test dossier recherche sauvegardée",
"language": "FR"
}
]
}
]'

Update

The examples below show how to update a stored search.

# <CORE_HOST>: FlowerDocs Core base URL
# <TOKEN>: authentication token
# <IDS>: list of stored search identifiers
curl -X POST "<CORE_HOST>/rest/storedsearch/<IDS>" \
-H "token: <TOKEN>" \
-H "Content-Type: application/json" \
-d '[
{
"template": "DefaultSearch",
"data": {
"owner": "phu",
"creationDate": "2024-04-05 14:08:03.790 +0200",
"lastUpdateDate": "2024-04-05 14:08:03.790 +0200",
"ACL": "STORED_SEARCH"
},
"recipients": {
"users": [
"phu",
"jna"
]
},
"id": "testFolderStoredSearch",
"category": "FOLDER",
"request": {
"selectClause": {
"fields": [
"name",
"classid",
"creationDate"
]
},
"orderClauses": [
{
"name": "creationDate",
"type": "TIMESTAMP",
"ascending": false
}
],
"start": 0,
"max": 20
},
"displayNames": [
{
"value": "Folder",
"language": "EN"
},
{
"value": "Dossier",
"language": "FR"
}
]
}
]'
warning

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

Deletion

The examples below show how to delete a list of stored searches.

# <CORE_HOST>: FlowerDocs Core base URL
# <TOKEN>: authentication token
# <IDS>: list of stored search identifiers
curl -X DELETE "<CORE_HOST>/rest/storedsearch/<IDS>" \
-H "token: <TOKEN>"