languages.read
| Name | Type | Description |
|---|---|---|
| serverId | number | The server id |
| category | string | The category you want to get the sentences from |
| Name | Type | Description | Default |
|---|---|---|---|
| lang | string | The language you want to get the sentences from | Player's language |
| Status | Code | Description |
|---|---|---|
OK |
The request has been successfully completed | |
INVALID_LANG |
The value doesn't follow the requirements | |
INVALID_SERVER_ID |
The server id is invalid | |
UNAUTHORIZED |
The token is invalid or expired | |
ACCESS_DENIED |
The token or the author does not have the required permissions | |
DISCORD_CONNECTION_REQUIRED |
You need a Discord account link to your Steam Account to access to the route | |
CATEGORY_NOT_FOUND |
The category you specified was not found | |
SERVER_NOT_FOUND |
The server does not exist | |
INTERNAL_ERROR |
An internal error has occured |
"OK"
number
string
string
string
number | null
string
string
string | null
string
string
languages.read
| Name | Type | Description |
|---|---|---|
| serverId | number | The server id |
| category | string | The category you want to get the sentences from |
| sentence | string | The sentence you want to get |
| Status | Code | Description |
|---|---|---|
OK |
The request has been successfully completed | |
INVALID_SERVER_ID |
The server id is invalid | |
UNAUTHORIZED |
The token is invalid or expired | |
ACCESS_DENIED |
The token or the author does not have the required permissions | |
DISCORD_CONNECTION_REQUIRED |
You need a Discord account link to your Steam Account to access to the route | |
CATEGORY_NOT_FOUND |
The category you specified was not found | |
LANGUAGE_NOT_FOUND |
The language you specified was not found | |
SENTENCE_NOT_FOUND |
The sentence you specified was not found | |
SERVER_NOT_FOUND |
The server does not exist | |
TRANSLATION_NOT_FOUND |
The translation of the sentence you specified was not found | |
INTERNAL_ERROR |
An internal error has occured |
"OK"
string
languages.read
| Name | Type | Description |
|---|---|---|
| serverId | number | The server id |
| Status | Code | Description |
|---|---|---|
OK |
The request has been successfully completed | |
INVALID_SERVER_ID |
The server id is invalid | |
UNAUTHORIZED |
The token is invalid or expired | |
ACCESS_DENIED |
The token or the author does not have the required permissions | |
DISCORD_CONNECTION_REQUIRED |
You need a Discord account link to your Steam Account to access to the route | |
SERVER_NOT_FOUND |
The server does not exist | |
INTERNAL_ERROR |
An internal error has occured |
"OK"
string[]
languages.read
| Name | Type | Description |
|---|---|---|
| serverId | number | The server id |
| sentences | string | The sentences you want to get with a specific format: |
| Name | Type | Description | Default |
|---|---|---|---|
| lang | string | The language you want to get the sentences from | Player's language |
| Status | Code | Description |
|---|---|---|
OK |
The request has been successfully completed | |
INVALID_LANG |
The value doesn't follow the requirements | |
INVALID_SERVER_ID |
The server id is invalid | |
UNAUTHORIZED |
The token is invalid or expired | |
ACCESS_DENIED |
The token or the author does not have the required permissions | |
DISCORD_CONNECTION_REQUIRED |
You need a Discord account link to your Steam Account to access to the route | |
LANGUAGE_NOT_FOUND |
The language you specified was not found | |
SENTENCES_NOT_FOUND |
Some sentences were not found (see the invalidSentences field in the response for more details) |
|
SERVER_NOT_FOUND |
The server does not exist | |
INTERNAL_ERROR |
An internal error has occured |
"OK"
number
string
string
string
number | null
string
string
string | null
string
string
languages.{alpha2}.manage scope to use this endpoint
| Name | Type | Description |
|---|---|---|
| serverId | number | The server id |
| category | string | The category you want to change the translations of |
| Key | Type | Structure | Description | Default | Required |
|---|---|---|---|---|---|
| sentences | array |
|
The sentences you want to change the translations of | ❌ | ✅ |
| Status | Code | Description |
|---|---|---|
OK |
The request has been successfully completed | |
BAD_BODY |
The request body is invalid | |
INVALID_SENTENCE_ID |
The sentence id you specified was not found in the category | |
INVALID_SENTENCES |
The value sentences doesn't follow the requirements |
|
INVALID_SERVER_ID |
The server id is invalid | |
MISSING_BODY |
The request does not have a body | |
UNAUTHORIZED |
The token is invalid or expired | |
ACCESS_DENIED |
The token or the author does not have the required permissions | |
DISCORD_CONNECTION_REQUIRED |
You need a Discord account link to your Steam Account to access to the route | |
CATEGORY_NOT_FOUND |
The category you specified was not found | |
LANGUAGE_NOT_FOUND |
The language you specified was not found | |
SERVER_NOT_FOUND |
The server does not exist | |
INTERNAL_ERROR |
An internal error has occured |
"OK"
languages.set
| Name | Type | Description |
|---|---|---|
| serverId | number | The server id |
| langAlpha2 | string | The language you want to have for your account |
| Status | Code | Description |
|---|---|---|
OK |
The request has been successfully completed | |
INVALID_SERVER_ID |
The server id is invalid | |
UNAUTHORIZED |
The token is invalid or expired | |
ACCESS_DENIED |
The token or the author does not have the required permissions | |
DISCORD_CONNECTION_REQUIRED |
You need a Discord account link to your Steam Account to access to the route | |
LANGUAGE_NOT_FOUND |
The language you specified was not found | |
SERVER_NOT_FOUND |
The server does not exist | |
INTERNAL_ERROR |
An internal error has occured |
"OK"