---
title: "Update My Credentials"
method: PATCH
path: "/api/v1/auth/me/credentials"
tags: ["api", "api", "auth"]
---

# Update My Credentials

`PATCH /api/v1/auth/me/credentials`

## 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/credentials`
- Auth: HTTP bearer

Joriy foydalanuvchi login (email) va/yoki parolini o'zgartiradi.

Paroli bor hisob uchun `current_password` majburiy.

## Request body

- CredentialsUpdateRequest: Login (email) va/yoki parolni o'zgartirish so'rovi. - email: yangi login (ixtiyoriy). - new_password: yangi parol (ixtiyoriy, kamida 8 ta belgi). - current_password: joriy parol — paroli bor hisoblar uchun o'zgarishni tasdiqlashda majburiy. Parolsiz (faqat Google) hisob birinchi marta parol o'rnatganda current_password shart emas.
  - `email` string, email, nullable
  - `current_password` string, nullable
  - `new_password` string, 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)
