POST /rest/api/2/issuetype/{id}/avatar2

Loads an avatar for the issue type.

Specify the avatar's local file location in the body of the request. Also, include the following headers:

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/2/issuetype/{issueTypeId}'This

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 Update issue type to set it as the issue type's displayed avatar.

Permissions required: Administer Jira global permission.

Servers

Path parameters

Name Type Required Description
id String Yes

The ID of the issue type.

Query parameters

Name Type Required Description
size Integer Yes

The length of each side of the crop region.

x Integer No

The X coordinate of the top-left corner of the crop region.

Default value: 0

y Integer No

The Y coordinate of the top-left corner of the crop region.

Default value: 0

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.