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 or null
avatarstring or null
userobject or null

Errors