Create new tag in the Tags Dictionary

POST {{api-server}}/{{Filerobot-Token}}/tags

This API endpoint creates new tags in the list of Tags in the Tags Dictionary.

Body parameters:

Name:Description:Syntax:Value/Example:
slugUnique tag identifier.The value should be unique. Duplicated slugs might create problems with search performance."slug":"slug_jshcvsuvd2873t"
primaryDefines if the tag should appear in the Suggested list.Optional parameter. Default value - false"primary":true
namesList with the Tag values in different languages.The languages should be defined in the project's configuration prior to be used."names": { "en": "Tomato", "fr": "Tomate", "de": "Tomate" }

Request Body

{"tag"=>{"slug"=>"slug_unique_value", "primary"=>false, "names"=>{"en"=>"Tomato", "fr"=>"Tomate", "de"=>"Tomate"}}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
X-Filerobot-Keystring

RESPONSES

status: OK

{"status":"success","duration":0.28,"api_version":{"hash":"b0d23b8fa1ae371a4966d57ae5237d65ced42d32","datetime":"2024-06-19T11:07:33+07:00","module":"elastic_v2"},"tag":{"uuid":"895ba729-f1ea-4398-8f58-c41be94dcba1","sid":"#tg35415","slug":"slug_unique_value","names":{"de":"Tomate","en":"Tomato","fr":"Tomate"},"primary":false,"created_at":"2024-06-19T15:36:29.816162Z","updated_at":null}}