Skip to content
atlassian-dc-mcp
Esc
↑↓navigate↵open⌘Jpreview

Update currently logged user

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
Authorization
AuthorizationBasic auth · headerrequired

In order to use basic authorization, provide username:password Base64 encoded in the 'Authorization' header.

Request body
requiredapplication/json

The new user details to be set.

activeboolean
applicationKeysstring[]
displayNamestring
emailAddressstring
keystring
namestring
notificationstring
passwordstring
selfstring
Responses
200

Confirmation that the user was updated.

activeboolean
applicationKeysstring[]
displayNamestring
emailAddressstring
keystring
namestring
notificationstring
passwordstring
selfstring
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.

Try it
Server
Authorization
Bodyapplication/json
Request
curl -X PUT 'http://jira.example.com/rest/api/2/myself' \
  -H 'Authorization: Basic YOUR_CREDENTIALS' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "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"
}'
Response
{
  "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"
}

Was this page helpful?