Skip to main content
POST
/
api
/
user
/
avatar
Upload avatar
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>"
  }
}

Authorizations

Authorization
string
header
required

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

Body

multipart/form-data
file
file
required

Image file (JPEG, PNG, GIF, or WebP)

Response

Avatar uploaded

status
string
Example:

"success"

status_code
integer
Example:

200

message
string
Example:

"Avatar uploaded successfully"

data
object