Skip to main content
Add a language

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

lang
string
required

Code of the language to add.

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

"en"

Body

application/json
active
boolean
default:false

Whether the language is offered to users. A language that is not active still exists and can be translated, but nobody can switch to it yet.

Example:

false

version
integer | null

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

Required range: x > 0
Example:

6

Response

The language was added.

status
string

Outcome of the operation, reported as a status type constant.

Example:

"SUCCESS"