Returns the locale for the user.If the user has no language preference set (which is the default setting) or this resource is accessed anonymous, the browser locale detected by Jira is returned. Jira detects the browser locale using the Accept-Language header in the request. However, if this doesn't match a locale available Jira, the site default locale is returned.This operation can be accessed anonymously.Permissions required: None.
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request GET 'http://jira.local:8080/jira/rest//rest/api/3/mypreferences/locale'
Response Response Example
200 - Success
{"locale":"en_US"}
Request
None
Responses
🟢200Returned if the request is successful.
application/json
Body
Details of a locale.
locale
stringÂ
optional
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.
🟠401Returned if the authentication credentials are incorrect or missing.