This web service enables users to change the default locales set for their portal.
To retrieve the current default language configuration, use the Get default locale configuration web service.
Method | Endpoint |
---|---|
POST |
/api/locales/default |
Request body
The JSON request expects the following parameters:
Field | Type | Description |
---|---|---|
defaultUiLocale |
Object | The default language ISO code for the portal interface. |
defaultContentLocale |
Object | The default language ISO code for the portal content. |
defaultRegions |
Array | ISO codes for default regional languages. For example, if users upload content with a ft:locale metadata value set to en , Fluid Topics completes en with the configured default region: US . The value of the ft:locale metadata becomes en-US . |
{
"defaultUiLocale": {
"lang": "fr",
"region": "FR"
},
"defaultContentLocale": {
"lang": "fr",
"region": "FR"
},
"defaultRegions": [
{
"lang": "en",
"region": "US"
},
{
"lang": "sq",
"region": "AL"
},
{
"lang": "ar",
"region": "MA"
},
{
"lang": "hy",
"region": "AM"
},
{
"lang": "vi",
"region": "VN"
}
]
}
Return code | Description |
---|---|
200 OK |
Returns 0 or more results. |
400 BAD REQUEST |
Invalid JSON request. |