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

## Changes

- **2002-04-24** `85037159b344` — 1 breaking
  - the response property `avatarId` became optional for the status `200`

[Change 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/85037159b344/schema)
