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

Create avatar from temporary

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
Authorization
AuthorizationBasic auth · headerrequired

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

Path parameters
projectIdOrKeystringrequired

Project id or project key

Request body
requiredapplication/json

Cropping instructions

cropperOffsetXinteger<int32>
cropperOffsetYinteger<int32>
cropperWidthinteger<int32>
needsCroppingboolean
urlstring
Responses
201

Avatar data

idstring
ownerstring
selectedboolean
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

Try it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl -X POST 'http://jira.example.com/rest/api/2/project/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?