The following REST calls may help you. These calls are private. I'll try them tomorrow, too. Let's see what happens. Or have you already solved it?
/rest/user-profile/1.0/avatar/uploadFallback
/rest/user-profile/1.0/{userKey}/avatar/default
/rest/user-profile/1.0/{userKey}/avatar/upload
Did this work for anyone? If so, what are the parameters?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don't think Confluence has a REST API endpoint for that yet, but you can use the XML-RPC/JSON-RPC API for that. There's a method called "addProfilePicture" that you can use: https://developer.atlassian.com/server/confluence/remote-confluence-methods/#user-management
Remember that for the RPC API you have to call the login method to get the token. If you are making the call from browser Javascript, though, this is unnecessary and the token will be filled in automatically.
If you're looking to do so in JIRA, it's a bit different and can be done via the REST API. This was the answer I used when I was trying to figure it out: https://community.atlassian.com/t5/Answers-Developer-Questions/Avatar-upload-with-Jira-5-REST-API/qaq-p/475376
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Don't know if this bug still exists but the @mention photos will be missing if you upload via the old RPC API. A reindex will fix it, but not ideal if you're constantly updating profile pictures.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.