> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cocoondata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# <access-service>/api/v1/i18n/adminpreference

## URL structure&#x20;

```text theme={null}
https://access-service.xy-company.com/api/v1/i18n/adminpreference
```

## Supported methods and overview&#x20;

* `PUT` - used to set a supported locale as the Safe Share administrator's default locale.

## Detailed description&#x20;

This API endpoint sets a supported locale as the Safe Share administrator's default locale. This is equivalent to setting the **System Default** language through the [Internationalization](/3.3/admin-platform/managing-internationalization.md) page of Safe Share Administration.

The Safe Share administrator's default locale serves a number of purposes:

* This locale (and language) is the default used for the Covata Sign-in page, Covata email notifications and the [Safe Share Administration](/3.3/admin-platform.md), [Organization Administration](/3.3/admin-org.md) and [Safe Share for Web](/3.3/user.md) user interfaces.
* This is the initial locale used for all newly created Covata users.
* When a custom locale *without* an existing internationalization (i18n) bundle is [deleted](/3.3/api/access-service-api-v1-i18n-bundles-localecode-delete.md), any Covata users utilizing this locale (which they would have chosen through Safe Share) will automatically be reverted to use this Safe Share administrator's default locale.

## Supported roles&#x20;

This API endpoint supports the following Covata user [roles](/3.3/admin-platform/administering-platform-administrator-users.md#platform-administrators-and-user-roles) (as described in the [Safe Share Administrator's Guide](/3.3/admin-platform.md)):

* [Safe Share administrator](/3.3/admin-platform/administering-platform-administrator-users.md#platform-administrator-role)

The Covata Platform's resources available to a Covata user meeting the criteria above is determined by the access token submitted in the [header](/3.3/api/access-service-api-v1-i18n-adminpreference.md#access-service-api-v1-i18n-adminpreference-required-headers) of requests to this endpoint.

## Required headers&#x20;

The appropriate access token as the `Bearer` token:

* `Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJleHAiOjE0NjcwMTY2NjYsInVzZXJfbmFtZSI6ImFsZXgub...`

The following header is required if the body of the request has a JSON object:

* `Content-Type: application/json`

## Required parameters&#x20;

The following required parameter must be sent in the **body** of the PUT request, as an individual member of a **JSON object**:

* **i18nCode** - A supported i18n code, where *supported* refers to a locale/language which is available through a language bundle on the Covata Platform. \

  **Tip:** Valid i18n codes values are listed in the **I18n Code** column on the [Internationalization](/3.3/admin-platform/managing-internationalization.md) page of Safe Share Administration. \

  **Example (request):**

  ```json theme={null}
  {
    "i18nCode": "en_us"
  }
  ```

## Returns&#x20;

If the request succeeded, then an HTTP response status `200 OK` is returned.

For successful requests only, the following string is returned in the body of the response:

```text theme={null}
"OK"
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.