Skip to main content
Rename 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

Translation key to rename. Its text is carried over to the new name and the key itself stops existing.

Example:

"common:name"

newKey
string
required

Name the key is moved to. It has to be free, and 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

Text to write for each language, keyed by language code. Languages not named keep the text they have; leave the whole map out to change nothing.

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 renamed 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