Profil fotoğrafı güncelle
**Production uyarisi:** Bu endpoint veri degistirir veya operasyon tetikleyebilir. API Playground icinde Production server seciliyse gercek production verisi etkilenir; test icin Development server kullanin. Kullanıcının profil fotoğrafını günceller.
Production uyarisi: Bu endpoint veri degistirir veya operasyon tetikleyebilir. API Playground icinde Production server seciliyse gercek production verisi etkilenir; test icin Development server kullanin.
Kullanıcının profil fotoğrafını günceller.
Authorization
JWT-auth Paste the JWT access token without the Bearer prefix.
In: header
Header Parameters
Uygulama içerisinde seçilen dil (varsayılan: en)
"en" | "tr"Zaman dilimi (varsayılan: UTC)
"UTC-12:00" | "UTC-11:00" | "UTC-10:00" | "UTC-09:30" | "UTC-09:00" | "UTC-07:00" | "UTC-06:00" | "UTC-05:00" | "UTC-04:00" | "UTC-03:30" | "UTC-03:00" | "UTC-02:00" | "UTC-01:00" | "UTC+00:00" | "UTC+01:00" | "UTC+02:00" | "UTC+03:00" | "UTC+03:30" | "UTC+04:00" | "UTC+04:30" | "UTC+05:00" | "UTC+05:30" | "UTC+05:45" | "UTC+06:00" | "UTC+06:30" | "UTC+07:00" | "UTC+08:00" | "UTC+08:45" | "UTC+09:00" | "UTC+09:30" | "UTC+10:00" | "UTC+10:30" | "UTC+11:00" | "UTC+12:00" | "UTC+12:45" | "UTC+13:00" | "UTC+14:00"Platform (varsayılan: web)
"web" | "mobile_ios" | "mobile_android" | "admin" | "api" | "unknown" | "all"Uygulama versiyonu (opsiyonel)
Cihaz kimliği (opsiyonel)
Request Body
multipart/form-data
TypeScript Definitions
Use the request body type in TypeScript.
Profil fotoğrafı
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PATCH "https://example.com/api/v1/users/profile/photo" \ -F file="profile-photo.jpg"{
"isSuccess": true,
"statusCode": 200,
"data": {
"_id": "507f1f77bcf86cd799439011",
"name": "John",
"surname": "Doe",
"username": "johndoe123",
"availabilityStatus": "available",
"countryCode": "90",
"phoneNumber": "5551234567",
"gender": "male",
"birthDate": "1995-06-15T00:00:00.000Z",
"interests": [
"music",
"sports",
"travel",
"cooking",
"reading"
],
"expertise": "designer",
"privacyPolicyAccepted": true,
"privacyPolicyVersion": "1.2.0",
"termsOfUseAccepted": true,
"termsOfUseVersion": "1.1.0",
"consentFormAccepted": true,
"consentFormVersion": "1.0.0",
"isRegistrationComplete": true,
"roles": [
"user"
],
"profilePhoto": {
"_id": "507f1f77bcf86cd799439012",
"url": "https://example.com/profile.jpg",
"type": "image"
},
"lastLogin": "2024-01-15T09:30:00.000Z",
"createdAt": "2024-01-15T10:30:00.000Z",
"updatedAt": "2024-01-15T12:30:00.000Z",
"email": "[email protected]",
"bio": "Passionate about technology and travel",
"instagram": "myinstagram",
"tiktok": "mytiktok",
"x": "mytwitterx",
"snapchat": "mysnapchat",
"facebook": "myfacebook",
"accountDeletionStatus": "pending",
"accountDeletionRequestedAt": "2026-04-07T10:00:00.000Z",
"accountDeletionScheduledFor": "2026-05-05T10:00:00.000Z",
"accountDeletionCancelledAt": "2026-04-08T10:00:00.000Z",
"accountDeletionFinalizedAt": "2026-04-07T10:05:00.000Z",
"deletedAt": "2026-04-07T10:05:00.000Z"
},
"errors": [],
"timestamp": "2026-05-22T16:11:26.808Z"
}{
"isSuccess": false,
"statusCode": 400,
"data": null,
"errors": [
"Validation failed"
],
"timestamp": "2026-01-15T10:30:00.000Z"
}{
"isSuccess": false,
"statusCode": 401,
"data": null,
"errors": [
"Authentication required"
],
"timestamp": "2026-01-15T10:30:00.000Z"
}{
"isSuccess": false,
"statusCode": 403,
"data": null,
"errors": [
"Insufficient permissions"
],
"timestamp": "2026-01-15T10:30:00.000Z"
}{
"isSuccess": false,
"statusCode": 404,
"data": null,
"errors": [
"Resource not found"
],
"timestamp": "2026-01-15T10:30:00.000Z"
}{
"isSuccess": false,
"statusCode": 409,
"data": null,
"errors": [
"Resource already exists or cannot be changed in its current state"
],
"timestamp": "2026-01-15T10:30:00.000Z"
}Profil güncelle (tam) PUT
**Production uyarisi:** Bu endpoint veri degistirir veya operasyon tetikleyebilir. API Playground icinde Production server seciliyse gercek production verisi etkilenir; test icin Development server kullanin. Kullanıcının tüm profil bilgilerini günceller.
Kullanıcı adı değiştir PATCH
**Production uyarisi:** Bu endpoint veri degistirir veya operasyon tetikleyebilir. API Playground icinde Production server seciliyse gercek production verisi etkilenir; test icin Development server kullanin. 30 günde bir kullanıcı adını değiştirir.