Returns a list of all avatars
Forge and OAuth2 apps cannot access this REST resource.
string
Requiredstring
RequiredReturns a list of all Jira avatars in JSON format, that are visible to the user.
1
2
3
4
curl --request GET \
--url 'http://{baseurl}/rest/api/2/universal_avatar/type/{type}/owner/{owningObjectId}' \
--user 'email@example.com:<api_token>' \
--header 'Accept: application/json'1
2
3
4
5
{
"id": "1000",
"owner": "fred",
"selected": true
}Creates avatar from temporary
Forge and OAuth2 apps cannot access this REST resource.
string
Requiredstring
Requiredinteger
integer
integer
boolean
string
Returns the created avatar.
1
2
3
4
5
6
7
8
9
10
11
12
curl --request POST \
--url 'http://{baseurl}/rest/api/2/universal_avatar/type/{type}/owner/{owningObjectId}/avatar' \
--user 'email@example.com:<api_token>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"cropperOffsetX": 50,
"cropperOffsetY": 50,
"cropperWidth": 120,
"needsCropping": true,
"url": "http://example.com/jira/secure/temporaryavatar?cropped=true"
}'1
2
3
4
5
{
"id": "1000",
"owner": "fred",
"selected": true
}Deletes avatar
Forge and OAuth2 apps cannot access this REST resource.
integer
Requiredstring
Requiredstring
RequiredReturns the status of the deletion.
1
2
3
curl --request DELETE \
--url 'http://{baseurl}/rest/api/2/universal_avatar/type/{type}/owner/{owningObjectId}/avatar/{id}' \
--user 'email@example.com:<api_token>'Creates temporary avatar
Forge and OAuth2 apps cannot access this REST resource.
string
Requiredstring
Requiredstring
boolean
object
string
integer
string
Returns temporary avatar cropping instructions.
1
2
3
4
curl --request POST \
--url 'http://{baseurl}/rest/api/2/universal_avatar/type/{type}/owner/{owningObjectId}/temp' \
--user 'email@example.com:<api_token>' \
--header 'Accept: application/json'1
2
3
4
5
6
7
{
"cropperOffsetX": 50,
"cropperOffsetY": 50,
"cropperWidth": 120,
"needsCropping": true,
"url": "http://example.com/jira/secure/temporaryavatar?cropped=true"
}Rate this page: