---
title: "Updates a user"
method: PATCH
path: "/api/users/{id}"
tags: ["Users"]
---

# Updates a user

`PATCH /api/users/{id}`

## Path parameters

- `id` string, required

## Request body

- UpdateUserRequestDto
  - `rewardsEthAddress` string, required
  - `username` string, required

## Response `200`

Updated user

- UserWithStatsDto
  - `_id` string, required
  - `identityEthAddress` string, required
  - `rewardsEthAddress` string, required
  - `username` string, required
  - `roles` string[], required
  - `accounts` UserAccount[], required
    - `_id` string, required
    - `user` UserNoUserAccountsDto
      - `_id` string, required
      - `identityEthAddress` string, required
      - `rewardsEthAddress` string, required
      - `username` string, required
      - `roles` string[], required
      - `createdAt` string, date-time, required
      - `updatedAt` string, date-time, required
    - `accountId` string, required
    - `name` string, required
    - `avatarId` string
    - `platform` string, required
    - `createdAt` string, date-time, required
    - `updatedAt` string, date-time, required
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time, required
  - `receivedTotalScore` number
  - `receivedTotalCount` number
  - `givenTotalScore` number
  - `givenTotalCount` number

## Changes

- **2023-05-12** `78c48cd67184` — 1 breaking
  - the `accounts/items/name` response property's maxLength was increased from `20` to `32` for the response status `200`
- **2023-04-27** `e14b4c818c53` — 1 info
  - endpoint added
- **2023-04-27** `e8ffc3233d9e` — 1 breaking
  - api path removed without deprecation
- **2023-04-04** `aa4804c758aa` — 1 info
  - endpoint added
- **2023-04-04** `9acb2632a6fd` — 1 breaking
  - api path removed without deprecation

[Full history](https://skmtc.dev/givepraise/apis/praise-api/changes/api/users/:id/patch.md)

---

[API](https://skmtc.dev/givepraise/apis/praise-api.md) · [All operations](https://skmtc.dev/givepraise/apis/praise-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/givepraise/praise-api/revisions/abb7cc6375c4/schema)
