---
title: "Update User Profile"
method: PATCH
path: "/api/v1/auth"
tags: ["Authentication"]
---

# Update User Profile

`PATCH /api/v1/auth`

## Request

- Base URL: `https://mockupper.damdafa.com/mockupper`
- URL: `https://mockupper.damdafa.com/mockupper/api/v1/auth`
- Auth: HTTP bearer

Update current user's profile information.

Supports updating profile fields like `isFirstVisit`.
Automatically determines the Firebase service (yzfoto/avukatim) from the token.
Works with all authentication providers (Firebase, Google, Apple).

**Authorization:** User can only update their own profile.

## Headers

- `ProviderId` 'firebase' | 'google' | 'apple'
- `X-Provider-Id` 'firebase' | 'google' | 'apple'
- `X-Device-Id` string, nullable

## Request body

- UserUpdateRequest: Request schema for updating user profile information.
  - `name` string, nullable: User's first name
  - `familyName` string, nullable: User's last name
  - `profilePhoto` string, uri, nullable: URL of the user's profile photo
  - `avatar` string, nullable: Avatar seed or string identifier
  - `fcmToken` string, nullable: FCM token for push notifications
  - `gender` 'male' | 'female': Gender values.

## Response `200`

Successful Response

- UserUpdateResponse: Response schema for user update operation.
  - `message` string, required: Status message

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/damdafa/apis/mockupper-api.md) · [All operations](https://skmtc.dev/damdafa/apis/mockupper-api/llms.txt) · [OpenAPI document](https://skmtc.dev/damdafa/apis/mockupper-api/revisions/5713d43bfed1?raw)
