Server
Jira Data Center / Reference / REST API
GET

Get currently logged userExperimental

Returns currently logged user. This resource cannot be accessed anonymously

Request

This request has no parameters.

Responses

Returns a full representation of a Jira user in JSON format.

application/json

UserBean
GET/api/2/myself
1 2 3 4 curl --request GET \ --url 'http://{baseurl}/rest/api/2/myself' \ --user 'email@example.com:<api_token>' \ --header 'Accept: application/json'
PUT

Update currently logged userExperimental

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.

Request

Request bodyapplication/json

The new user details to be set.

active

boolean

applicationKeys

array<string>

displayName

string

emailAddress

string

key

string

name

string

notification

string

password

string

self

string

Responses

Confirmation that the user was updated.

application/json

UserWriteBean
PUT/api/2/myself
1 2 3 4 5 curl --request PUT \ --url 'http://{baseurl}/rest/api/2/myself' \ --user 'email@example.com:<api_token>' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json'
PUT

Update caller passwordExperimental

Modify caller password.

Request

Request bodyapplication/json

The new password to be set.

currentPassword

string

password

string

Responses

Confirmation that the password was changed.

PUT/api/2/myself/password
1 2 3 4 curl --request PUT \ --url 'http://{baseurl}/rest/api/2/myself/password' \ --user 'email@example.com:<api_token>' \ --header 'Content-Type: application/json'

Rate this page: