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

Create avatar from temporary

Creates avatar from temporary

POST/api/2/universal_avatar/type/{type}/owner/{owningObjectId}/avatar
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.

Path parameters
typestringrequired
owningObjectIdstringrequired

Entity id where to change avatar

Request body
application/json
cropperOffsetXinteger<int32>
cropperOffsetYinteger<int32>
cropperWidthinteger<int32>
needsCroppingboolean
urlstring
Responses
201

Returns the created avatar.

idstring
ownerstring
selectedboolean
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
Bodyapplication/json
Request
curl -X POST 'http://jira.example.com/rest/api/2/universal_avatar/type/string/owner/string/avatar' \
  -H 'Authorization: Basic YOUR_CREDENTIALS' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "cropperOffsetX": 50,
  "cropperOffsetY": 50,
  "cropperWidth": 120,
  "needsCropping": true,
  "url": "http://example.com/jira/secure/temporaryavatar?cropped=true"
}'
Response
{
  "id": "1000",
  "owner": "fred",
  "selected": true
}

Was this page helpful?