---
title: "Update UserAccount"
method: PATCH
path: "/api/useraccounts/{id}"
tags: ["UserAccounts"]
---

# Update UserAccount

`PATCH /api/useraccounts/{id}`

## Request body

- UpdateUserAccountInputDto
  - `accountId` string
  - `name` string
  - `avatarId` string
  - `platform` string
  - `activateToken` string
  - `user` string

## Response `200`

- UpdateUserAccountResponseDto
  - `_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, required
  - `platform` string, required
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time, required
  - `activateToken` string

## Changes

- **2023-04-04** `aa4804c758aa` — 1 info
  - endpoint added
- **2023-04-04** `9acb2632a6fd` — 1 breaking
  - api path removed without deprecation
- **2023-04-04** `aa4804c758aa` — 1 breaking, 7 info
  - the `user` response's property type/format changed from `string`/`` to `object`/`` for status `200`
  - added the required property `user/_id` to the response with the `200` status
  - added the required property `user/createdAt` to the response with the `200` status
  - added the required property `user/identityEthAddress` to the response with the `200` status
  - …4 more
- **2023-04-03** `e1a32d8c1997` — 1 info
  - endpoint added
- **2023-04-03** `872dae15b4ba` — 1 breaking
  - api path removed without deprecation

[Full history](https://skmtc.dev/givepraise/apis/praise-api/changes/api/useraccounts/: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/1c866f9dfd40/schema)
