---
title: "Update User"
method: PUT
path: "/api/v1/users"
tags: ["2. USERS"]
---

# Update User

`PUT /api/v1/users`

## Request

- Base URL: `https://api.movielab.guru` (the document declares no server; this is the origin it was published from)
- URL: `https://api.movielab.guru/api/v1/users`
- Auth: OAuth 2
  - Password
  - Token URL: `/api/v1/auth/login`
- TypeScript: <https://skmtc.dev/movielab/apis/movielab/docs/api/v1/users/put.ts> (a function with typed inputs; its response is checked against the schema)

Update current user

## Request body

- UserUpdate
  - `name` string, nullable
  - `email` string, nullable
  - `phone` string, nullable
  - `birthdate` string, date-time, nullable
  - `image_url` string, nullable

## Response `200`

Successful Response

- ResultResponseUserSchema
  - `result` UserSchema, required
    - `id` integer, required
    - `username` string, required
    - `email` string, email, nullable
    - `name` string, nullable
    - `phone` string, nullable
    - `birthdate` string, date, nullable
    - `image_url` string, nullable
    - `provider` string, nullable
    - `is_locked` boolean, nullable
    - `is_admin` boolean, nullable
    - `is_premium` boolean, nullable
    - `source` string, nullable
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/movielab/apis/movielab.md) - [All operations](https://skmtc.dev/movielab/apis/movielab/llms.txt) - [OpenAPI document](https://skmtc.dev/movielab/apis/movielab/revisions/e8f9acafbc6f?raw)
