Authentication

Update User Profile

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.

patch/api/v1/auth

Request

  • Base URL: https://foto.damdafa.com/dreamhome
  • URL: https://foto.damdafa.com/dreamhome/api/v1/auth
  • Auth: HTTP bearer

Headers

ProviderId'firebase' | 'google' | 'apple'
X-Provider-Id'firebase' | 'google' | 'apple'
X-Device-Idstring nullable

Request body

namestring nullable

User's first name

familyNamestring nullable

User's last name

profilePhotostring uri nullable

URL of the user's profile photo

avatarstring nullable

Avatar seed or string identifier

fcmTokenstring nullable

FCM token for push notifications

gender'male' | 'female'

Gender values.

Response

Successful Response

messagestring required

Status message

Example response

{
  "message": "User profile updated successfully"
}

Changes

No recorded changes to this operation across all 1 revision of this API.