Set User Avatar
HTTP Method | URL | Requires Auth |
---|---|---|
|
|
Permission required: edit-other-user-avatar
, if the setting AllowUserAvatarChange is enabled.
Body Parameters
Key | Example Value | Description |
---|---|---|
| Any image file or a URL | You have 2 options to set the user avatar:
|
|
| The ID or username of the user. If not provided, the avatar of the user who is sending the request is updated. |
Example Call
With an image as form data:
With URL:
Example Response
Change Log
Version | Description |
---|---|
0.56.0 | Add support for |
0.48.0 | Set other users avatars if the callee has permission. |
0.46.0 | Added |
Last updated