Skip to main content

User avatar

Get user map settings#

  • Url: https://velo-europe.de/api/{lang}/users/accounts/avatars/uploads
  • Method: POST
  • Authentication required

Request body#

avatarFile - required - image converted to base64 string

Response body#

{
"url": {
"small": "http://velo.local/app_dev.php/de/media/cache/resolve/user_profile_small/images/avatar/60b/75e/ece/60b75eecee57a716739367.png",
"big": "http://velo.local/app_dev.php/de/media/cache/resolve/user_profile_big/images/avatar/60b/75e/ece/60b75eecee57a716739367.png"
}
}

Example request#

curl --location --request POST 'https://velo-europe.de/api/de/users/accounts/avatars/uploads' \
--header 'Authorization: Bearer YmU5YWM1YWE2YzhhZjIwZTE4ZTIwODZmMDNjZDk5NzBhMjI5NWE3YjRiOTNmMGVmMGIyZGIzZmQzZjY4MWVlZg' \
--header 'Content-Type: application/json' \
--data-raw '{
"avatarFile": "data:image/png;base64, iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="
}'