Skip to main content
Create a translation key

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"

Body

application/json
values
object
required

Text of the key in each language, keyed by language code. Every code named here has to be a language the tenant has; languages left out are not written.

version
integer | null

Version the key carried when you read it, so a change someone made in the meantime is not overwritten. A key being created has nothing to check it against.

Required range: x > 0
Example:

6

Response

Returns the new key with its text in each language.

values
object

Value of the key in every language of the tenant, keyed by language code.

version
integer

Version the key carried when any of its values last changed. Send it back when updating the key, so a change someone made in the meantime is not overwritten.

Example:

6