# Languages
Languages are the localizations of which data can exist in the PIM installation. If users shall be able to enter data in a specific culture, that language must be added to the system. All languages in the system are based on ISO Culture codes. Each ISO culture code can only be added once, meaning no two languages can use the same culture code
GET /Languages Get all languages added to the system
[
{
"Id": 1,
"CultureCode": "en-GB",
"Name": "English"
},
{
"Id": 2,
"CultureCode": "da-DK",
"Name": "Danish"
},
{
"Id": 3,
"CultureCode": "de-DE",
"Name": "German"
}
]
Response status OK (200)
array : LanguageModel
LanguageModel
Property name | Data type | Description |
---|---|---|
Id | integer | |
CultureCode | string | |
Name | string |
PUT /Languages Update a language in the system
{
"Id": 1,
"CultureCode": "en-GB",
"Name": "English (british)"
}
Request parameters
Property name | Parameter type | Data type | Description |
---|---|---|---|
model | body | object : LanguageModel |
Updated language |
LanguageModel
Property name | Data type | Description |
---|---|---|
Id | integer | |
CultureCode | string | |
Name | string |
Response status OK (200)
No body message is returned
POST /Languages Add language to system
{
"CultureCode": "en-GB",
"Name": "English"
}
Request parameters
Property name | Parameter type | Data type | Description |
---|---|---|---|
model | body | object : AddLanguageModel |
Language to add |
AddLanguageModel
Property name | Data type | Description |
---|---|---|
CultureCode | string | |
Name | string |
Response status OK (200)
integer
DELETE /Languages Delete a language in the system
Request parameters
Property name | Parameter type | Data type | Description |
---|---|---|---|
id | query | integer |
Id of language |
Response status OK (200)
No body message is returned
GET /Languages/{id} Get a specific language in the system
{
"Id": 1,
"CultureCode": "en-GB",
"Name": "English"
}
Request parameters
Property name | Parameter type | Data type | Description |
---|---|---|---|
id | path | integer |
Id of language |
Response status OK (200)
object : LanguageModel
LanguageModel
Property name | Data type | Description |
---|---|---|
Id | integer | |
CultureCode | string | |
Name | string |