---
title: "Update User"
method: PUT
path: "/user"
tags: ["user"]
---

# Update User

`PUT /user`

## Request body

- UserUpdate
  - `username` string, nullable
  - `display_name` string, nullable
  - `avatar_url` string, nullable
  - `is_active` boolean, nullable
  - `nsfw_preference` boolean, nullable
  - `blur_explicit_images` boolean, nullable
  - `theme_preference` string, nullable
  - `default_model` string, nullable
  - `default_temperature` number, nullable

## Response `200`

Successful Response

- UserResponse
  - `email` string, email, nullable
  - `username` string, required
  - `display_name` string, nullable
  - `avatar_url` string, nullable
  - `is_active` boolean
  - `id` string, uuid, required
  - `role` string
  - `created_at` string, date-time, required
  - `last_login_at` string, date-time, nullable
  - `nsfw_preference` boolean
  - `blur_explicit_images` boolean
  - `theme_preference` string
  - `default_model` string, nullable
  - `default_temperature` number, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/meganova/apis/fastapi.md) · [All operations](https://skmtc.net/meganova/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/meganova/fastapi/revisions/2b2bab8b9017/schema)
