POST
/
api
/
users
/
{id}
/
avatar
curl --request POST \
  --url http://localhost/api/users/{id}/avatar \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data'
{
  "success": true
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

Body

multipart/form-data
file
file
required

Response

200
*/*
OK
success
boolean