Skip to main content

Kullanıcı Ayarlarını Getir

Kullanıcı ayarlarını getirir.

Endpoint

GET /api/v1/user/settings

Authentication

Bu endpoint authentication gerektirir.

Header: Authorization: Bearer \{token\}

Permission

  • user.settings.view - Tüm kullanıcı ayarlarını görüntüleme
  • user.settings.view.own - Sadece kendi ayarlarını görüntüleme

Request

Headers

HeaderDeğerZorunlu
AuthorizationBearer \{token\}Evet

Query Parameters

ParametreTipZorunluAçıklama
with_trashedbooleanHayırSilinen ayarları dahil et

Response

Success Response (200 OK)

{
"id": 1,
"user_id": 1,
"uuid": "550e8400-e29b-41d4-a716-446655440000",
"locale": "tr",
"timezone": "Europe/Istanbul",
"date_format": "d/m/Y",
"time_format": "H:i",
"currency_id": 1,
"country_code": "TR",
"theme": "light",
"items_per_page": 15,
"custom_settings": {},
"created_at": "2025-11-20T12:00:00.000000Z",
"updated_at": "2025-11-20T12:00:00.000000Z",
"currency": {
"id": 1,
"code": "TRY",
"name": "Turkish Lira",
"symbol": "₺"
}
}

Code Examples

cURL

curl -X GET https://api.example.com/api/v1/user/settings \
-H "Authorization: Bearer \{token\}"

Notes

  • Her kullanıcı için otomatik olarak bir UserSetting kaydı oluşturulur
  • Ayarlar yoksa varsayılan değerler döner