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

Update user avatar

Updates the avatar for the user.

PUT/api/2/user/avatar
Authorization
AuthorizationBasic auth · headerrequired

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

or
AuthorizationBearer token · headerrequired

Personal Access Token — Administration > Profile > Personal Access Tokens

AuthorizationBasic auth · headerrequired

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

Query parameters
usernamestring

username

Request body
requiredapplication/json

New avatar details

idstring
ownerstring
selectedboolean
Responses
200

Returns updated avatar

idstring
ownerstring
selectedboolean
400

Returned if the avatar details are invalid

401

Returned if the user is not authenticated.

403

Returned if the currently authenticated user does not have permission to update avatar

404

Returned if user from parameter does not exist

500

Returned if an error occurs while updating the avatar

Try it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl -X PUT 'http://jira.example.com/rest/api/2/user/avatar' \
  -H 'Authorization: Basic YOUR_CREDENTIALS' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "id": "1000",
  "owner": "fred",
  "selected": true
}'
Response
{
  "id": "1000",
  "owner": "fred",
  "selected": true
}

Was this page helpful?