---
ai:
  exclude: true
search:
  tags:
    - project
    - POST
seo:
  description: >-
    Converts the temporary avatar… Reference for the POST
    /api/2/project/{projectIdOrKey}/avatar endpoint in the Jira Software Data
    Center REST API Reference.
sidebar:
  label: Create avatar from temporary
  badge: POST
title: Create avatar from temporary
type: openapi-operation
---
Converts the temporary avatar into the final one. This is step 2/3 of changing an avatar for a project:
- Upload (store temporary avatar)
- Crop (create avatar from temporary)
- Update (update project avatar)

`POST /api/2/project/{projectIdOrKey}/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` — Avatar data
- `400` — Returned if the cropping coordinates are invalid
- `401` — Returned if the user is not authenticated
- `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

Response example, 201:

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