Internal
Create a new instance of the service.
Deletes an avatar from a project, issue type or priority.
Permissions required: Administer Jira global permission.
The ID of the avatar.
The ID of the item the avatar is associated with.
The avatar type.
Returns a list of system avatar details by owner type, where the owner types are issue type, project, user or priority.
This operation can be accessed anonymously.
Permissions required: None.
The avatar type.
Returned if the request is successful.
example:
{
"system": [
{
"id": "1000",
"isDeletable": false,
"isSelected": false,
"isSystemAvatar": true,
"urls": {
"16x16": "/secure/useravatar?size=xsmall&avatarId=10040&avatarType=project",
"24x24": "/secure/useravatar?size=small&avatarId=10040&avatarType=project",
"32x32": "/secure/useravatar?size=medium&avatarId=10040&avatarType=project",
"48x48": "/secure/useravatar?avatarId=10040&avatarType=project"
}
}
]
}
Returns a project, issue type or priority avatar image by ID.
This operation can be accessed anonymously.
Permissions required:
Optional
format?: "svg" | "png"The format to return the avatar image in. If not provided the original content format is returned.
The ID of the avatar.
Optional
size?: The size of the avatar image. If not provided the default size is returned.
The icon type of the avatar.
status: 200, mediaType: * /*
Returned if the request is successful.
status: 200, mediaType: application/json
Returned if the request is successful.
status: 200, mediaType: image/png
Returned if the request is successful.
status: 200, mediaType: image/svg+xml
Returned if the request is successful.
Returns the avatar image for a project, issue type or priority.
This operation can be accessed anonymously.
Permissions required:
The ID of the project or issue type the avatar belongs to.
Optional
format?: "svg" | "png"The format to return the avatar image in. If not provided the original content format is returned.
Optional
size?: The size of the avatar image. If not provided the default size is returned.
The icon type of the avatar.
status: 200, mediaType: * /*
Returned if the request is successful.
status: 200, mediaType: application/json
Returned if the request is successful.
status: 200, mediaType: image/png
Returned if the request is successful.
status: 200, mediaType: image/svg+xml
Returned if the request is successful.
Returns the default project, issue type or priority avatar image.
This operation can be accessed anonymously.
Permissions required: None.
Optional
format?: "svg" | "png"The format to return the avatar image in. If not provided the original content format is returned.
Optional
size?: The size of the avatar image. If not provided the default size is returned.
The icon type of the avatar.
status: 200, mediaType: * /*
Returned if the request is successful.
status: 200, mediaType: application/json
Returned if the request is successful.
status: 200, mediaType: image/png
Returned if the request is successful.
status: 200, mediaType: image/svg+xml
Returned if the request is successful.
Returns the system and custom avatars for a project, issue type or priority.
This operation can be accessed anonymously.
Permissions required:
The ID of the item the avatar is associated with.
The avatar type.
Returned if the request is successful.
example:
{
"custom": [
{
"id": "1010",
"isDeletable": true,
"isSelected": false,
"isSystemAvatar": false,
"urls": {
"16x16": "https://your-domain.atlassian.net/secure/viewavatar?size=xsmall&avatarId=10080&avatarType=project",
"24x24": "https://your-domain.atlassian.net/secure/viewavatar?size=small&avatarId=10080&avatarType=project",
"32x32": "https://your-domain.atlassian.net/secure/viewavatar?size=medium&avatarId=10080&avatarType=project",
"48x48": "https://your-domain.atlassian.net/secure/viewavatar?avatarId=10080&avatarType=project"
}
}
],
"system": [
{
"id": "1000",
"isDeletable": false,
"isSelected": false,
"isSystemAvatar": true,
"urls": {
"16x16": "https://your-domain.atlassian.net/secure/viewavatar?size=xsmall&avatarId=10040&avatarType=project",
"24x24": "https://your-domain.atlassian.net/secure/viewavatar?size=small&avatarId=10040&avatarType=project",
"32x32": "https://your-domain.atlassian.net/secure/viewavatar?size=medium&avatarId=10040&avatarType=project",
"48x48": "https://your-domain.atlassian.net/secure/viewavatar?avatarId=10040&avatarType=project"
}
}
]
}
Loads a custom avatar for a project, issue type or priority.
Specify the avatar's local file location in the body of the request. Also, include the following headers:
X-Atlassian-Token: no-check
To prevent XSRF protection blocking the
request, for more information see Special Headers.Content-Type: image/image type
Valid image types are JPEG, GIF, or PNG.For example:
curl --request POST
--user email@example.com:<api_token>
--header 'X-Atlassian-Token: no-check'
--header 'Content-Type: image/< image_type>'
--data-binary "<@/path/to/file/with/your/avatar>"
--url 'https://your-domain.atlassian.net/rest/api/3/universal_avatar/type/{type}/owner/{entityId}'
The avatar is cropped to a square. If no crop parameters are specified, the square originates at the top left of the image. The length of the square's sides is set to the smaller of the height or width of the image.
The cropped image is then used to create avatars of 16x16, 24x24, 32x32, and 48x48 in size.
After creating the avatar use:
Permissions required: Administer Jira global permission.
The ID of the item the avatar is associated with.
The length of each side of the crop region.
The avatar type.
Optional
x?: numberThe X coordinate of the top-left corner of the crop region.
Optional
y?: numberThe Y coordinate of the top-left corner of the crop region.
Returned if the request is successful.
example:
{
"id": "1010",
"isDeletable": true,
"isSelected": false,
"isSystemAvatar": false
}
Protected
Static
initialize
This resource represents system and custom avatars. Use it to obtain the details of system or custom avatars, add and remove avatars from a project, issue type or priority and obtain avatar images.
See
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-avatars