---
ai:
  exclude: true
search:
  tags:
    - issuetype
    - POST
seo:
  description: >-
    Converts temporary avatar into a real avatar. Reference for the POST
    /api/2/issuetype/{id}/avatar endpoint in the Jira Software Data Center REST
    API Reference.
sidebar:
  label: Convert temporary avatar into a real avatar
  badge: POST
title: Convert temporary avatar into a real avatar
type: openapi-operation
---
Converts temporary avatar into a real avatar

`POST /api/2/issuetype/{id}/avatar`

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

Cropping instructions.

- `cropperOffsetX` (integer<int32>)
- `cropperOffsetY` (integer<int32>)
- `cropperWidth` (integer<int32>)
- `needsCropping` (boolean)
- `url` (string)

Request body example:

```json
{
  "cropperOffsetX": 50,
  "cropperOffsetY": 50,
  "cropperWidth": 120,
  "needsCropping": true,
  "url": "http://example.com/jira/secure/temporaryavatar?cropped=true"
}
```

**Responses**

- `201` — Returns created avatar.
- `400` — Returned if the cropping coordinates are invalid.
- `403` — Returned if the currently authenticated user does not have permission to pick avatar.
- `404` — Returned if the currently authenticated user does not have EDIT PROJECT permission.
- `500` — Returned if an error occurs while converting temporary avatar to real avatar.

Response example, 201:

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