Languages
There are 239 language codes in the ISO standard language code table. This service defaults to supporting a maximum of 17 languages resources. However, you can add custom languages (requires Environment Admin permissions). Refer to Create Language.
The languages service supports the following input and output data model properties for languages resources.
Languages input data model
| Property | Type | Required | Mutable | Description |
|---|---|---|---|---|
|
Boolean |
Required |
Mutable |
Specifies whether this language is the default for the environment. This property value must be set to |
|
Boolean |
Required |
Mutable |
Specifies whether this language is enabled for the environment. This property value must be set to |
|
String |
Required |
Immutable |
The environment resource’s unique identifier associated with the resource. |
|
String |
Required |
Immutable |
The resource’s unique identifier. |
|
String |
Required |
Mutable |
An ISO standard language code. For more information about standard language codes, refer to ISO Language Code Table. |
|
String |
Optional |
Mutable |
The language name. If omitted, the ISO standard name is used. |
Languages output data model
| Property | Type | Required | Mutable | Description |
|---|---|---|---|---|
|
Date |
N/A |
Read-only |
The time the language resource was created. |
|
Boolean |
Optional |
Mutable |
Specifies whether this language was added by a customer administrator. |
|
Boolean |
Required |
Mutable |
Specifies whether this language is the default for the environment. This property value must be set to |
|
Boolean |
Required |
Mutable |
Specifies whether this language is enabled for the environment. This property value must be set to |
|
String |
Required |
Immutable |
The environment resource’s unique identifier associated with the resource. |
|
String |
Required |
Immutable |
The resource’s unique identifier. |
|
String |
Required |
Mutable |
An ISO standard language code. For more information about standard language codes, refer to ISO Language Code Table. |
|
String |
Optional |
Mutable |
The language name. If omitted, the ISO standard name is used. |
|
Date |
N/A |
Read-only |
The time the language resource was last updated. |
Response codes
| Code | Message |
|---|---|
200 |
Successful operation. |
201 |
Successfully created. |
204 |
Successfully removed. No content. |
400 |
The request could not be completed. |
401 |
You do not have access to this resource. |
403 |
You do not have permissions or are not licensed to make this request. |
404 |
The requested resource was not found. |
Languages errors
In addition to the general error codes, languages operations can return the following errors:
| HTTP status | Top‑level code | Detail code | When it happens and what the response contains |
|---|---|---|---|
400 |
|
None |
Message: The service-specific message describing the violated lifecycle rule. When and detailsWhen: A Details: None. Representative messages: |
400 |
|
None |
Message: When and detailsWhen: A Details: None. |
400 |
|
None |
Message: For an invalid Invalid language name. The character set for a language name is alphanumeric characters, space, dot, dash and underscore. for an unparseable path identifier, When and detailsWhen: A Details: For a JSON field conversion error, the target is the field path. Otherwise no detail is returned. |
400 |
|
|
Message: When and detailsWhen: A Details: The detail target is |
403 |
|
None |
Message: When and detailsWhen: The actor lacks the Details: None. |
404 |
|
None |
Message: When and detailsWhen: Details: None. |