---
ai:
  exclude: true
search:
  tags:
    - universal_avatar
    - POST
seo:
  description: >-
    Creates… Reference for the POST
    /api/2/universal_avatar/type/{type}/owner/{owningObjectId}/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
---
Creates avatar from temporary

`POST /api/2/universal_avatar/type/{type}/owner/{owningObjectId}/avatar`

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

- `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 the created avatar.
- `400` — Returned if the provided data isn't valid.
- `403` — Returned if the user doesn't have admin permissions.
- `404` — Returned if the feature is turned off via a feature flag.

Response example, 201:

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