cURL
curl --request POST \ --url https://dev.exante.app/api/user/avatar \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: multipart/form-data' \ --form file='@example-file'
{ "status": "success", "status_code": 200, "message": "Avatar uploaded successfully", "data": { "avatar_url": "<string>" } }
Uploads a new avatar image for the authenticated user. Accepts JPEG, PNG, GIF, or WebP files up to 5 MB.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Image file (JPEG, PNG, GIF, or WebP)
Avatar uploaded
"success"
200
"Avatar uploaded successfully"
Show child attributes