Ludoria
    • Back to home
    • Residents
    • Lists
      • liked games lists
        • Retrieve a list
        • List all games from list
        • Like a game
        • Update a list
        • Remove game from list
      • played games lists
        • List all played games
        • Retrieve a played game
        • Add a played game
        • Update a played game
        • Remove a played game
      • List all lists
        GET
      • Retrieve a list
        GET
      • Create a list
        POST
      • Add game to list
        PUT
      • Update a list
        PATCH
      • Delete a list
        DELETE
      • Remove game from list
        DELETE
    • Reviews
      • List all reviews
        GET
      • Retrieve a review
        GET
      • Add a review
        POST
      • Update a review
        PATCH
      • Delete a review
        DELETE
    • Ratings
      • List all ratings
        GET
      • Retrieve a rating
        GET
      • Add a rating
        POST
      • Upsert a rating
        PUT
      • Update a rating
        PATCH
      • Delete a rating
        DELETE
    • Game Stats
      • List a resident's stats per game
        GET
    • Library
      • Get library visibility settings
        GET
      • List game library statuses as virtual lists
        GET
      • Update library visibility settings
        PATCH
      • List library entries for a resident
        GET
      • Add or upsert a library entry
        PUT
      • Get a library entry
        GET
      • Update a library entry
        PATCH
      • Remove a library entry
        DELETE
    • Liked Games
      • Get liked games for a resident
      • Like a game
      • Update liked-games visibility
      • Unlike a game
    • Deleted
      • obfuscates data
    • List all residents
      GET
    • Retrieve resident profile
      GET
    • Create a resident
      POST
    • Update a resident
      PATCH
    • Deletion request
      DELETE
    • Delete a resident
      DELETE
    • Follow a resident
      POST
    • Unfollow a resident
      DELETE

      Update a resident

      Testing
      PATCH
      /v1/residents/{username}
      residents
      Last modified:2026-05-25 03:56:17
      Maintainer:JoseMa Esparza

      Request

      Authorization
      Bearer Token
      Provide your bearer token in the
      Authorization
      header when making requests to protected resources.
      Example:
      Authorization: Bearer ********************
      or
      Path Params

      Header Params

      Body Params application/json

      Example
      {
          "id": "string",
          "username": "string",
          "email": "user@example.com",
          "first_name": "string",
          "last_name": "string",
          "gender": "string",
          "date_of_birth": "2019-08-24T14:15:22.123Z",
          "profile_picture_url": "string",
          "password": "string",
          "confirmation_token": "string",
          "confirmation_token_time": "2019-08-24T14:15:22.123Z",
          "password_recovery_token": "string",
          "recovery_token_time": "2019-08-24T14:15:22.123Z",
          "email_validation_status_id": "string",
          "external_provider_id": "string",
          "external_provider_token": "string",
          "referral_code": "string",
          "role_id": "string",
          "followers_count": 0,
          "following_count": 0,
          "last_login": "2019-08-24T14:15:22.123Z"
      }

      Request Code Samples

      Shell
      JavaScript
      Java
      Swift
      Go
      PHP
      Python
      HTTP
      C
      C#
      Objective-C
      Ruby
      OCaml
      Dart
      R
      Request Request Example
      Shell
      JavaScript
      Java
      Swift
      curl --location --request PATCH 'http://localhost:4002/rest/v1/residents/' \
      --header 'X-Nexus-Key: ' \
      --header 'Authorization: Bearer <token>' \
      --header 'Content-Type: application/json' \
      --data-raw '{
          "id": "string",
          "username": "string",
          "email": "user@example.com",
          "first_name": "string",
          "last_name": "string",
          "gender": "string",
          "date_of_birth": "2019-08-24T14:15:22.123Z",
          "profile_picture_url": "string",
          "password": "string",
          "confirmation_token": "string",
          "confirmation_token_time": "2019-08-24T14:15:22.123Z",
          "password_recovery_token": "string",
          "recovery_token_time": "2019-08-24T14:15:22.123Z",
          "email_validation_status_id": "string",
          "external_provider_id": "string",
          "external_provider_token": "string",
          "referral_code": "string",
          "role_id": "string",
          "followers_count": 0,
          "following_count": 0,
          "last_login": "2019-08-24T14:15:22.123Z"
      }'

      Responses

      🟢200Success
      application/json
      Bodyapplication/json

      Example
      {
          "id": "string",
          "username": "string",
          "email": "user@example.com",
          "first_name": "string",
          "last_name": "string",
          "gender": "string",
          "date_of_birth": "2019-08-24T14:15:22.123Z",
          "profile_picture_url": "string",
          "password": "string",
          "confirmation_token": "string",
          "confirmation_token_time": "2019-08-24T14:15:22.123Z",
          "password_recovery_token": "string",
          "recovery_token_time": "2019-08-24T14:15:22.123Z",
          "email_validation_status_id": "string",
          "external_provider_id": "string",
          "external_provider_token": "string",
          "referral_code": "string",
          "role_id": "string",
          "followers_count": 0,
          "following_count": 0,
          "last_login": "2019-08-24T14:15:22.123Z"
      }
      🔴500Server Error
      Modified at 2026-05-25 03:56:17
      Previous
      Create a resident
      Next
      Deletion request
      Built with