I'm trying to update a user's avatar url via the REST API by making a post call (with Rest-Method: PUT) to: ~/api.ashx/v2/users/2105/avatar.json (in which 2105 is my UserId)
the result is a json object with error:
"Unauthorized: Permission to update user avatar with remote URL denied."
Both the user used for the rest-request as the impersonate user are Administrators. Does anyone have a clue how to fix this?
-- Edit --
Ah figured it out. Turned out that the setting 'Enable remote avatars' wasn't enabled. Error could be a bit more clear about this...