By default there is no internal avatar image URL. Most avatars are either static or generated on the fly from the user’s email address hash. If the gravatar option is used, images come from the gravatar API. So there is nothing to even read regarding user avatar URLs through the API, much less set. Instead of labeling it read only, reserved for future use might be a better label.
If your site uses an avatar plugin, it’s up to the plugin to implement a REST endpoint that can be used to manipulate related values. In that case, please inquire through the plugin’s support channel.
Thread Starter
dumidu
(@dumidu)
@bcworkz Thank you for the reply.
Currently I don’t use any avatar plugin. Do you have any suggestion for that.
Sorry, no. You could try searching. The sticking point is probably whether a REST endpoint is provided. I personally rely on Gravatar to let users manage their own avatars and stay out of it entirely. Letting random users upload to your site does carry some security risk.