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.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/issuetype/{issueTypeId}'This
curl --location --request POST '/rest/api/3/issuetype//avatar2?size' \
--header 'Content-Type: text/plain' \
--data-raw ''
{"id":"1010","isDeletable":true,"isSelected":false,"isSystemAvatar":false}