Update user

POST /1/users/me

Update user

application/json

Body

  • email string Required

    The email of this user.

  • fullName string

    The full name of the user.

  • nickname string

    The nickname of the user.

  • language string

    The language of the user.

  • notificationsEnabled boolean

    The language of the user.

  • private boolean

    If the user has a private profile.

Responses

  • 200 application/json

    The updated user.

    Hide response attribute Show response attribute object
    • user object
      Hide user attributes Show user attributes object
      • id string Required
      • nickname string Required
      • fullName string
      • email string Required
      • language string Required
      • startDate string Required
      • imageUrl string
      • waitingListValue number Required
      • notificationsEnabled boolean Required
      • notifyDaysBefore array[integer] Required
      • private boolean Required
      • yourFriendship object
        Hide yourFriendship attributes Show yourFriendship attributes object
        • id string Required
        • status string Required
        • date string Required
        • muted boolean
      • theirFriendship object
        Hide theirFriendship attributes Show theirFriendship attributes object
        • id string Required
        • status string Required
        • date string Required
        • muted boolean
POST /1/users/me
curl \
 --request POST 'https://api.localsporthero.com/1/users/me' \
 --header "Content-Type: application/json" \
 --data '{"email":"string","fullName":"string","nickname":"string","language":"string","notificationsEnabled":true,"private":true}'
Request examples
{
  "email": "string",
  "fullName": "string",
  "nickname": "string",
  "language": "string",
  "notificationsEnabled": true,
  "private": true
}
Response examples (200)
{
  "user": {
    "id": "1ab474d5-e1fa-4340-ba6a-5642e720ea6a",
    "nickname": "Stevertje",
    "fullName": "Stefan de Jong",
    "email": "stefandejong@gmail.com",
    "language": "nl",
    "startDate": "2022-05-02T11:00:00.000Z",
    "imageUrl": "https://example.org/image.jpg",
    "waitingListValue": 0,
    "notificationsEnabled": true,
    "notifyDaysBefore": [
      -1,
      1
    ],
    "private": false,
    "yourFriendship": {
      "id": "85362399-38e1-4255-87a0-f3f984ed16d9",
      "status": "requested, accepted or blocked",
      "date": "2022-05-02T11:00:00.000Z",
      "muted": false
    },
    "theirFriendship": {
      "id": "85362399-38e1-4255-87a0-f3f984ed16d9",
      "status": "requested, accepted or blocked",
      "date": "2022-05-02T11:00:00.000Z",
      "muted": false
    }
  }
}