Upload avatar file

Upload a new avatar image file for the authenticated user.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects a multipart form containing a file.
avatarfileRequired

Avatar image file (JPEG, PNG, GIF, WebP, max 5MB)

Response

Avatar updated successfully
messagestring
avatarstring
userobject

Errors

400
Bad Request Error
401
Unauthorized Error
404
Not Found Error
500
Internal Server Error