- URL:
- https://<root>/system/languages/update
- Methods:
POST- Version Introduced:
- 10.4
Access requirements
Required privileges
The Portal Administrator API requires privilege-based access. An administrator must be assigned a specific user privilege, or role, to access any given endpoint. Listed below are the user privileges or roles an administrator can be assigned that provides access to this endpoint. If multiple privileges are listed, only one needs to be assigned to gain access.
Tokens
This API requires token-based authentication. A token is automatically generated for administrators who sign in to the Portal Administrator API directory's HTML interface. Tokens generated in this way are stored for the entirety of the session.
Those accessing the API directory outside of the HTML interface will need to acquire a session token from the generate operation in the Portal Directory API. For security reasons, all POST requests made to the Portal Administrator API must include a token in the request body.
Description
The update operation updates the languages that will have content displayed in portal search results. When called, this operation triggers a reindex of the portal. This may take awhile to finish. During this time, the index service may not respond correctly to index queries.
Request parameters
| Parameter | Details |
|---|---|
| Lists, as form data, the language values for languages that will be displayed in content search results. For a complete list of portal languages, see the Language values table below. Example |
Language values
| Language | 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) | Support added at 10.9.
|
(Slovenščina) |
|
(Español) |
|
(Svenska) |
|
(ไทย) |
|
(繁體中文 [香港]) |
|
(繁體中文 [台灣]) |
|
(Türkçe) |
|
(Україна) |
|
(Tiếng Việt) |
|
Example usage
The following is a sample POST request for the update operation:
POST /<context>/portaladmin/system/languages/update HTTP/1.1
Host: organization.example.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []
languages=esri_ar&languages=esri_bs&languages=esri_bg&languages=esri_ca&languages=esri_hr&languages=esri_cs&languages=esri_da&languages=esri_nl&languages=esri_en&languages=esri_et&languages=esri_fi&languages=esri_fr&languages=esri_de&languages=esri_el&languages=esri_he&languages=esri_hu&languages=esri_ind&languages=esri_it&languages=esri_ja&languages=esri_ko&languages=esri_lv&languages=esri_lt&languages=esri_nb&languages=esri_pl&languages=esri_pt&languages=esri_po&languages=esri_ro&languages=esri_ru&languages=esri_sr&languages=esri_zh&languages=esri_sl&languages=esri_sv&languages=esri_th&languages=esri_hk&languages=esri_tw&languages=esri_tr&languages=esri_vi