---
ai:
  exclude: true
search:
  tags:
    - user
    - PUT
seo:
  description: >-
    Updates the avatar for the user. Reference for the PUT /api/2/user/avatar
    endpoint in the Jira Software Data Center REST API Reference.
sidebar:
  label: Update user avatar
  badge: PUT
title: Update user avatar
type: openapi-operation
---
Updates the avatar for the user.

`PUT /api/2/user/avatar`

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

New avatar details

- `id` (string)
- `owner` (string)
- `selected` (boolean)

Request body example:

```json
{
  "id": "1000",
  "owner": "fred",
  "selected": true
}
```

**Responses**

- `200` — Returns updated avatar
- `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

Response example, 200:

```json
{
  "id": "1000",
  "owner": "fred",
  "selected": true
}
```
