---
ai:
  exclude: true
search:
  tags:
    - myself
    - PUT
seo:
  description: >-
    Modify currently logged user. The 'value' fields present… Reference for the
    PUT /api/2/myself endpoint in the Jira Software Data Center REST API
    Reference.
sidebar:
  label: Update currently logged user
  badge: PUT
title: Update currently logged user
type: openapi-operation
---
Modify currently logged user. The 'value' fields present will override the existing value. Fields skipped in request will not be changed. Only email and display name can be change that way. Requires user password.

`PUT /api/2/myself`

**Request body** (`application/json`, required)

The new user details to be set.

- `active` (boolean)
- `applicationKeys` (string[])
- `displayName` (string)
- `emailAddress` (string)
- `key` (string)
- `name` (string)
- `notification` (string)
- `password` (string)
- `self` (string)

Request body example:

```json
{
  "active": true,
  "applicationKeys": [
    "jira-core"
  ],
  "displayName": "Charlie of Atlassian",
  "emailAddress": "charlie@atlassian.com",
  "key": "charlie",
  "name": "charlie",
  "notification": "HTML",
  "password": "abracadabra",
  "self": "http://www.example.com/jira/rest/api/2/user?username=charlie"
}
```

**Responses**

- `200` — Confirmation that the user was updated.
- `400` — The request is invalid including incorrect password.
- `401` — The user is not authenticated.
- `403` — The directory is read-only.
- `404` — The user could not be found.

Response example, 200:

```json
{
  "active": true,
  "applicationKeys": [
    "jira-core"
  ],
  "displayName": "Charlie of Atlassian",
  "emailAddress": "charlie@atlassian.com",
  "key": "charlie",
  "name": "charlie",
  "notification": "HTML",
  "password": "abracadabra",
  "self": "http://www.example.com/jira/rest/api/2/user?username=charlie"
}
```
