How can I set user avatar in confluence using it's API and python?
EDIT
Alright, I found an endpoint while using confuence in browser.
https://conf.example.ru/rest/user-profile/1.0/iserID/avatar/upload
Where can I found any docs about this endpoint? I feel like confluence has a billion different api's with like 30% documentation for each.
EDIT
I'm now trying to use this endpoint with no documentation. I'm using python requests:
requests.post('https://conf.example.ru/rest/user-profile/1.0/userID/avatar/upload', auth=HTTPBasicAuth('user', 'pass'))
And it returns 403 which means incorrect credentials, but they are correct, I copy pasted them from login page. What should I do. Documentation still needed.