Skip to main content
Version: v2025.5.0

The TagClassService service exposes all the operations available around TagClass type components.

Retrieving tag classes

The examples below show how to retrieve all tag classes.

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

Tag class creation

The examples below show how to create a tag class.

# <CORE_HOST>: FlowerDocs Core base URL
# <TOKEN>: authentication token
curl -X POST "<CORE_HOST>/rest/tagclass" \
-H "token: <TOKEN>" \
-H "Content-Type: application/json" \
-d '[
{
"data": {
"owner": "user1",
"creationDate": "2023-10-04 11:00:00.000 +0200"
},
"type": "STRING",
"displayNames": [
{
"value": "TagCreate",
"language": "EN"
},
{
"value": "TagCreation",
"language": "FR"
}
],
"searchable": false,
"id": "TagCreation"
}
]'

Modifying tag classes

This operation updates the data of a tag class

# <CORE_HOST>: FlowerDocs Core base URL
# <TOKEN>: authentication token
# <IDS>: comma-separated list of tag class identifiers to be updated
curl -X POST "<CORE_HOST>/rest/tagclass/<IDS>" \
-H "token: <TOKEN>" \
-H "Content-Type: application/json" \
-d '[
{
"data": {
"owner": "user1",
"creationDate": "2023-10-04 11:00:00.000 +0200"
},
"type": "STRING",
"displayNames": [
{
"value": "TagUpdate",
"language": "EN"
},
{
"value": "TagMaJ",
"language": "FR"
}
],
"searchable": false,
"id": "TagCreation"
}
]'

Tag class search

The example below shows how to retrieve a tag class from a list of identifiers.

# <CORE_HOST>: FlowerDocs Core base URL
# <TOKEN>: authentication token
# <IDS>: comma-separated list of tag class identifiers to be retrieved
curl -X GET "<CORE_HOST>/rest/tagclass/<IDS>" \
-H "token: <TOKEN>"

Tag class deletion

This operation deletes a list of tag classes from a list of identifiers.

# <CORE_HOST>: FlowerDocs Core base URL
# <TOKEN>: authentication token
# <IDS>: comma-separated list of tag class identifiers to be deleted
curl -X DELETE "<CORE_HOST>/rest/tagclass/<IDS>" \
-H "token: <TOKEN>"