User Avatar API Endpoint 404 on POST, 200 on GET

I am trying to update a users avatar using the REST API. I am getting a 200 when using a GET request, and retirving the users current Avatar. When I try to update the Avatar with a PUT or POST, I get a 404 error. Am I doing something wrong or need to configure something?

Parents Reply
  • It is looking for an exact match on the Url of a selectable avatar.  You will need the original url rather than a resized image url. Those Urls don't appear to be visible anywhere in administration, but if you go to edit your profile and change your avatar, you can see them by inspect the images and looking for the data-url property.  Or just adjust the format of the resized image urls to match the following one.

    It should look like this:  /cfs-file/__key/communityserver-discussions-components-files/3048/avatar.png

Children