Skip to main content

Update user profile

Post user map settings#

  • Url: https://velo-europe.de/api/{lang}/users/accounts/profiles/forms
  • Method: POST
  • Authentication required
  • Content-Type: application/json

Request body#

User profile object - not all fields are required

{
"nickname": "my nickname",
"firstName": "janusz",
"lastName": "json"
}

Response body#

{
"notification": {
"type": "success",
"title": "Erfolg",
"message": "Profile changes have been saved"
},
"id": 17,
"username": "Moj nick",
"email": "przemo@blue-focus.com",
"firstName": "Marcinos",
"lastName": "Programistyczny",
"location": "Katowiceeee",
"dateOfBirth": "1979-04-25T00:00:00+00:00",
"bikeType": "TOURING BIKE",
"distanceTraveledPerYear": "LESS THAN 10000 KM",
"estimatedRideTimePerDay": "MORE THAN 4 HOURS",
"avatar": "https://velo-test.blue-focus.info/images/avatar/607/574/cfd/607574cfda06a681754610.jpeg",
"statistics": {
"time": 5098,
"distance": 95120
},
"gender": "Man",
"weight": 100,
"height": 200
}

Example request#

curl --location --request POST 'https://velo-europe.de/api/de/users/accounts/profiles/forms' \
--header 'Authorization: Bearer MTdmNmFhMDQyMWM3MGFhYzFiNTM5ZDNmYWU0OTA5N2MzOWQxZGE4NzcyMGZmMGNkZTBlMWQwNjczOGNkMDMwYQ' \
--header 'Content-Type: application/json' \
--data-raw '{
"nickname": "niceee",
"firstName": "Marcinos",
"lastName": "Jsonowvsky"
}'