Skip to content

Jira:Avatars:Picker API

lbonanomi edited this page Apr 27, 2020 · 1 revision

Force user lbonanomi to use the avatar served by intravatar server at http://100.71.22.222:

curl -ns -X PUT -d '{"id":"10122","isSystemAvatar":true,"isSelected":false,"urls":{"16x16":"http://100.71.22.222/avatar/8f8af56878eea9adec8890fd4aa9e94d?d=mm&s=16","24x24":"http://100.71.22.222/avatar/8f8af56878eea9adec8890fd4aa9e94d?d=mm&s=24","32x32":"http://100.71.22.222/avatar/8f8af56878eea9adec8890fd4aa9e94d?d=mm&s=32","48x48":"http://100.71.22.222/avatar/8f8af56878eea9adec8890fd4aa9e94d?d=mm&s=48"}}' -H "Content-Type: application/json" "http://jira:8080/rest/api/latest/user/avatar?username=lbonanomi"

The "id" parameter is the ID of the grvatar's position in the picker, find exemplar with Chrome DevTools

Clone this wiki locally