---
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` string
  - `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-03-31** `af4ea0086c6f` — 10 breaking, 1 info
  - the `name` request property's maxLength was decreased to `20`
  - the `name` request property's minLength was increased from `2` to `4`
  - the `user` response's property type/format changed from `object`/`` to `string`/`` for status `200`
  - removed the required property `user/_id` from the response with the `200` status
  - …7 more
- **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/af4ea0086c6f/schema)
