Update a vocabulary's content and structure - Fluid Topics - Latest

Fluid Topics API Reference Guide

Reference Guides

This web service returns updates the terms or language associated with a vocabulary.

Method Endpoint
PUT /api/admin/khub/vocabularies/{vocabularyId}/content
Path parameter Type Description
{vocabularyId} String The unique identifier of the vocabulary to be updated.

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.