Skip to content
atlassian-dc-mcp
Esc
↑↓navigate↵open⌘Jpreview

Create temporary avatar using multipart upload

Creates temporary avatar

POST/api/2/universal_avatar/type/{type}/owner/{owningObjectId}/temp
Authorization
AuthorizationBasic auth · headerrequired

In order to use basic authorization, provide username:password Base64 encoded in the 'Authorization' header.

or
AuthorizationBearer token · headerrequired

Personal Access Token — Administration > Profile > Personal Access Tokens

AuthorizationBasic auth · headerrequired

In order to use basic authorization, provide username:password Base64 encoded in the 'Authorization' header.

or
AuthorizationBearer token · headerrequired

Personal Access Token — Administration > Profile > Personal Access Tokens

AuthorizationBasic auth · headerrequired

In order to use basic authorization, provide username:password Base64 encoded in the 'Authorization' header.

Path parameters
typestringrequired
owningObjectIdstringrequired

Entity id where to change avatar

Request body
multipart/form-data
contentTypestring
formFieldboolean
inputStreamobject
namestring
sizeinteger<int64>
valuestring
Responses
200

Returns temporary avatar cropping instructions.

cropperOffsetXinteger<int32>
cropperOffsetYinteger<int32>
cropperWidthinteger<int32>
needsCroppingboolean
urlstring
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.

Try it
Server
Authorization
Parameters
Bodymultipart/form-data
Request
curl -X POST 'http://jira.example.com/rest/api/2/universal_avatar/type/string/owner/string/temp' \
  -H 'Authorization: Basic YOUR_CREDENTIALS' \
  -H 'Accept: application/json' \
  --form-string 'contentType=string' \
  --form-string 'formField=true' \
  --form-string 'inputStream={}' \
  --form-string 'name=string' \
  --form-string 'size=0' \
  --form-string 'value=string'
Response
{
  "cropperOffsetX": 50,
  "cropperOffsetY": 50,
  "cropperWidth": 120,
  "needsCropping": true,
  "url": "http://example.com/jira/secure/temporaryavatar?cropped=true"
}

Was this page helpful?