- URL:
- https://<root>/system/content/languages/add
- Methods:
POST- Version Introduced:
- 11.2
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 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 |
| Introduced at ArcGIS Enterprise 12.0. This parameter specifies whether the operation is performed asynchronously. If set as Values: |
| 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>/portaladmin/system/content/languages/add HTTP/1.1
Host: organization.example.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []
languages=ar,bs,bg,fr,de,es&async=false&f=pjsonJSON Response examples
The following response is returned when the operation is performed synchronously:
{"status": "success"}