List vocabularies - Fluid Topics - Latest

Fluid Topics API Reference Guide

Category
Reference Guides
Audience
public
Version
Latest

This web service returns a list of the vocabularies configured for a tenant.

Method Endpoint
GET
/api/admin/khub/vocabularies

It is necessary to provide an Ft-Calling-App value when using Fluid Topics web services. See Fluid Topics calling app.

Response body

[
  {
    "id": "vocabulary1",
    "usedInSearch": false,
    "description": "generated from Knowledge Hub user interface",
    "locales": [
      "en-US"
    ],
    "mimeType": "application/rdf+xml",
    "lastUpdate": {
      "user": "Root User",
      "date": "2022-09-02T13:25:57Z"
    },
    "mode": "FULL"
  },
  {
    "id": "vocabulary2",
    "usedInSearch": true,
    "description": "generated from Knowledge Hub user interface",
    "locales": [
      "en-US",
      "fr-FR"
    ],
    "mimeType": "application/rdf+xml",
    "lastUpdate": {
      "user": "Root User",
      "date": "2022-09-02T09:36:11Z"
    },
    "mode": "FULL"
  }
]
Field Type Description
id String The vocabulary's unique identifier.
usedInSearch Boolean Defines whether the search engines uses the vocabulary when indexing content.
description String The description of the vocabulary.
It is only available in the List vocabularies web service response.
locales Array The languages in which the vocabulary is available. "*" stands for a universal vocabulary. Fluid Topics automatically detects the locales using the values in the vocabulary file.
mimeType String Defines the format of the file containing the terms of the vocabulary. Possible values are text/csv for CSV vocabularies, application/rdf%2Bxml for RDF/SKOS vocabularies, and application/dita%2Bxml for DITA subject scheme maps.
lastUpdate Object Defines whether the vocabulary has been updated, when, and by whom.
Return code Description
200 OK The request is valid and data was returned.
401 UNAUTHORIZED The authorization header was not provided or is invalid.
403 FORBIDDEN The user not have the ADMIN or KHUB_ADMIN role.

For a list of all possible return codes, see Return codes.