cURL
curl --request POST \ --url http://localhost:8091/api/users/me/avatar \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: multipart/form-data' \ --form file='@example-file'
{ "data": { "id": "<string>", "username": "<string>", "displayName": "<string>", "status": "<string>", "bot": true, "createdAt": "2023-11-07T05:31:56Z", "avatarPath": "<string>" } }
Uploads an avatar image for the authenticated user. Maximum file size is 5MB. Only image/* MIME types are accepted.
Session token obtained from /api/auth/login or /api/auth/register. Pass as: Authorization: Bearer
Avatar image file (max 5MB, image/* only)
Avatar updated
Show child attributes