---
ai:
  exclude: true
search:
  tags:
    - universal_avatar
    - POST
seo:
  description: >-
    Creates… Reference for the POST
    /api/2/universal_avatar/type/{type}/owner/{owningObjectId}/temp endpoint in
    the Jira Software Data Center REST API Reference.
sidebar:
  label: Create temporary avatar using multipart upload
  badge: POST
title: Create temporary avatar using multipart upload
type: openapi-operation
---
Creates temporary avatar

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

**Request body** (`multipart/form-data`)

- `contentType` (string)
- `formField` (boolean)
- `inputStream` (object)
- `name` (string)
- `size` (integer<int64>)
- `value` (string)

Request body example:

```json
{
  "contentType": "string",
  "formField": true,
  "inputStream": {},
  "name": "string",
  "size": 0,
  "value": "string"
}
```

**Responses**

- `200` — Returns temporary avatar cropping instructions.
- `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, 200:

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