Ana içeriğe geç

Kullanıcı Ayarlarını Geri Yükle

Silinmiş kullanıcı ayarlarını geri yükler.

Endpoint

POST /api/v1/user/settings/\{uuid\}/restore

Authentication

Bu endpoint authentication gerektirir.

Header: Authorization: Bearer \{token\}

Permission

  • user.settings.restore - Tüm kullanıcı ayarlarını geri yükleme
  • user.settings.restore.own - Sadece kendi ayarlarını geri yükleme

Request

Headers

HeaderDeğerZorunlu
AuthorizationBearer \{token\}Evet

Path Parameters

ParametreTipZorunluAçıklama
uuidstringEvetAyar UUID'si

Response

Success Response (200 OK)

{
"message": "UserSetting restored",
"setting": {
"id": 1,
"uuid": "550e8400-e29b-41d4-a716-446655440000",
"locale": "tr",
"timezone": "Europe/Istanbul"
}
}

Code Examples

cURL

curl -X POST https://api.example.com/api/v1/user/settings/550e8400-e29b-41d4-a716-446655440000/restore \
-H "Authorization: Bearer \{token\}"