- URL:
- https://<root>/system/content/languages/add
- Methods:
POST- Required Capability:
- Access allowed with the "Organization website" privilege
- Version Introduced:
- 10.9
Description
The add operation enables specified languages for an organization. Once a language has been enabled, the language's related content is searchable and accessible to users in your organization and is listed as enabled (true) in the Languages resource response. Enabled languages can be disabled using the Remove operation.
Request parameters
| Parameter | Details |
|---|---|
| A comma-separated list of language codes for the languages that will be enabled. Example |
| The response format. The default format is Values: |
Language codes
| Supported language | Code value |
|---|---|
(عربي) |
|
(Bosanski) |
|
(Български) | Support added at 11.0
|
(Català) |
|
(Hrvatski) |
|
(čeština) |
|
(Dansk) |
|
(Nederlands) |
|
|
|
(Eesti) |
|
(Suomi) |
|
(Français) |
|
(Deutsch) |
|
(Ελλάδα) |
|
(עברית) |
|
(Magyar) |
|
(Bahasa Indonesia) |
|
(Italiano) |
|
(日本語) |
|
(한국어) |
|
(Latviešu) |
|
(Lietuvių) |
|
(Norsk) |
|
(Polski) |
|
(Português [Brasil]) |
|
(Português [Portugal]) |
|
(Română) |
|
(Русский) |
|
(Русский) |
|
(简体中文) |
|
(Slovenčina) |
|
(Slovenščina) |
|
(Español) |
|
(Svenska) |
|
(ไทย) |
|
(繁體中文 [香港]) |
|
(繁體中文 [台灣]) |
|
(Türkçe) |
|
(Україна) |
|
(Tiếng Việt) |
|
Example usage
The following is a sample POST request for the add operation:
POST /context/admin/system/content/languages/add HTTP/1.1
Host: organization.domain.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []
languages=fr,de&f=pjson&token=g4m3FlX7ifeSLP8fClvpnLv95373xYFYD_HtOrrVDMrfaBf4I5PXQnAnCBa9DE5k93jxjGtSeShP1ET5SMykfhT5vHLV2ZirGRrEIdiYk7STP2q7a11QLAzH03RhPD2tM5GSLfnkEqCoq865UTwOA9ot8zPDPnOCr1Nr8_gtMLfqwiX4HsiKpK43iVPSRQb8x0W3h9C4tEbjadtVCculHK8jDaqxf-wCBsuSVJPxsEMoAS5l0QRtO7KjC7tpiMVFJSON Response example
{"status": "success"}