---
title: "Update Me"
method: PATCH
path: "/api/v1/auth/me/update"
tags: ["api", "api", "auth"]
---

# Update Me

`PATCH /api/v1/auth/me/update`

## Request

- Base URL: `https://www.faroz.uz` (the document declares no server; this is the origin it was published from)
- URL: `https://www.faroz.uz/api/v1/auth/me/update`
- Auth: HTTP bearer

Joriy foydalanuvchi o'z profilini yangilaydi (faqat uzatilgan maydonlar).

## Request body

- UserUpdateRequest: Profil yangilash so'rovi — barcha maydonlar ixtiyoriy. Faqat uzatilgan maydonlar yangilanadi (None bo'lmaganlar).
  - `name` string, nullable
  - `second_name` string, nullable
  - `third_name` string, nullable
  - `phone` string, nullable
  - `phone_verified` boolean, nullable
  - `skills` integer[], nullable
  - `admin_permissions` AdminPermission[], nullable

## Response `200`

Successful Response

- UserResponse: Foydalanuvchi profili javob modeli. model_config from_attributes=True — SQLAlchemy modeli va domen ob'ektidan to'g'ridan-to'g'ri o'qiy oladi (model_validate() ishlatish uchun).
  - `id` integer, required
  - `email` string, required
  - `name` string, nullable
  - `second_name` string, nullable
  - `third_name` string, nullable
  - `phone` string, nullable
  - `phone_verification_status` string
  - `phone_rejection_reason` string, nullable
  - `skills` integer[]
  - `admin_permissions` AdminPermission[]
  - `is_active` boolean, required
  - `created_at` string, date-time, required
  - `has_password` boolean
  - `has_google` boolean
  - `linked_profiles` LinkedProfileResponse[]
    - `id` integer, required
    - `email` string, required
    - `name` string, nullable
    - `role` string, required
    - `counterpart_role` string, nullable
    - `status` string, required
    - `is_incoming` boolean
    - `awaiting_my_cancel_confirm` boolean
    - `can_cancel` boolean
    - `cancel_at` string, date-time, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/faroz/apis/edu-app-api.md) · [All operations](https://skmtc.dev/faroz/apis/edu-app-api/llms.txt) · [OpenAPI document](https://skmtc.dev/faroz/apis/edu-app-api/revisions/414a551ba773?raw)
