---
title: "update existing user (if you are trying to update an admin user you yourself should be admin) (if user does not have user:modify permission trying to modify other users' information fails with a forbidden error) (Auth)"
method: PUT
path: "/api/users/{id}"
tags: ["AppUser"]
---

# update existing user (if you are trying to update an admin user you yourself should be admin) (if user does not have user:modify permission trying to modify other users' information fails with a forbidden error) (Auth)

`PUT /api/users/{id}`

## Path parameters

- `id` string, uuid, required

## Request body

- RegisterRAppUser — user infor used for registeration
  - `id` string, uuid, nullable — Id
  - `username` string, nullable — User Name
  - `email` string, email, nullable — User Email
  - `phoneNumber` string, tel, nullable — User Mobile Phone Number
  - `firstName` string, nullable — First Name
  - `surName` string, nullable — SurName
  - `status` 0 | 1, required — User Status
  - `rImageId` string, uuid, nullable — user image
  - `nickName` string, nullable — nick name
  - `bio` string, nullable — biography
  - `website` string, nullable — web site
  - `emailConfirmed` boolean — email verified
  - `createDate` string, date-time — create date
  - `password` string, nullable — desired password, if sent empty system generates one
  - `isAdmin` boolean — is admin

## Response `200`

OK

- boolean

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden

---

[API](https://skmtc.net/ganjoor/apis/rmuseum-api.md) · [All operations](https://skmtc.net/ganjoor/apis/rmuseum-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ganjoor/rmuseum-api/versions/bb8e104d36d2/schema)
