Skip to main content
Create a translation key with one language filled in

Authorizations

token
string
query
required

Standard authorization for most API calls. This token identifies the logged-in user and their permissions. It is obtained either as a temporary token after a successful login or as a long-term API key.

Path Parameters

key
string
required

Name of the translation key to create. Its namespace - the part before the colon - has to be one the tenant declares in its settings.

Required string length: 1 - 256
Pattern: ^[a-z0-9]+([_-]{1}[a-z0-9]+)*:([a-z0-9]+([_-]{1}[a-z0-9]+)*\.)*[a-z0-9]+([_-]{1}[a-z0-9]+)*$
Example:

"common:name"

lang
string
required

Code of the language the text is written in.

Minimum string length: 1
Pattern: ^[a-z][a-z-]+$
Example:

"en"

Body

application/json
value
string | null

Text of the translation in this language. Leave it out to create the key empty everywhere and translate it later.

Example:

"Circularo"

version
integer | null

Version the key was read with. A key being created has nothing to check it against.

Required range: x > 0
Example:

6

Response

Returns the text of the new key in the requested language.

value
string | null

Translated text of the key in the requested language. It is absent while nobody has translated the key into that language.

Example:

"Circularo"