---
title: "Set locale"
method: PUT
path: "/rest/api/2/mypreferences/locale"
tags: ["Myself"]
deprecated: true
---

# Set locale

`PUT /rest/api/2/mypreferences/locale`

> **Deprecated.**

Deprecated, use [ Update a user profile](https://developer.atlassian.com/cloud/admin/user-management/rest/#api-users-account-id-manage-profile-patch) from the user management REST API instead.

Sets the locale of the user. The locale must be one supported by the instance of Jira.

**[Permissions](#permissions) required:** Permission to access Jira.

## Request body

- Locale — Details of a locale.
  - `locale` string — The locale code. The Java the locale format is used: a two character language code (ISO 639), an underscore, and two letter country code (ISO 3166). For example, en\_US represents a locale of English (United States). Required on create.

## Response `204`

Returned if the request is successful.

- unknown

## Other responses

- `400` — Returned if request is invalid.
- `401` — Returned if the authentication credentials are incorrect or missing.

---

[API](https://skmtc.net/atlassian/apis/the-jira-cloud-platform-rest-api.md) · [All operations](https://skmtc.net/atlassian/apis/the-jira-cloud-platform-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/atlassian/the-jira-cloud-platform-rest-api/versions/a26541c2f8bd/schema)
