This web service returns updates the terms or language associated with a vocabulary.
| Method | Endpoint |
|---|---|
PUT |
|
| Path parameter | Type | Description |
|---|---|---|
{vocabularyId} |
String | The unique identifier of the vocabulary to be updated. |
It is necessary to provide an Ft-Calling-App value when using Fluid Topics web services. See Fluid Topics calling app.
Request example
To update a vocabulary's content and structure, the web service call requires a multipart/form-data request body, like in the following curl command:
curl --location --request PUT 'https://my-fluidtopics.net/api/admin/khub/vocabularies/test/content' \
--header 'Authorization: Bearer $API-KEY' \
--form 'vocabulary=@"vocabulary1.csv"'
| Return code | Description |
|---|---|
200 OK |
The request is valid and the vocabulary was updated. |
400 BAD REQUEST |
The request is invalid. |
401 UNAUTHORIZED |
The authorization header was not provided or is invalid. |
403 FORBIDDEN |
The user not have the ADMIN or KHUB_ADMIN role. |
404 NOT FOUND |
The vocabulary does not exist. |
For a list of all possible return codes, see Return codes.