Skip to main content

Public Kullanıcı Geri Yükle

Token gerektirmeden email ve UUID ile kullanıcı hesabını geri yükler.

Endpoint

POST /api/v1/users/restore

Authentication

Bu endpoint authentication gerektirmez (public).

Request

Headers

HeaderDeğerZorunlu
Content-Typeapplication/jsonEvet

Request Body

ParametreTipZorunluAçıklama
emailstringEvetKullanıcı e-posta adresi
uuidstringEvetKullanıcı UUID'si

Example Request

{
"email": "member@example.com",
"uuid": "550e8400-e29b-41d4-a716-446655440000"
}

Response

Success Response (200 OK)

{
"message": "User restored"
}

Error Responses

404 Not Found

{
"message": "User not found"
}

422 Unprocessable Entity

{
"message": "The given data was invalid.",
"errors": {
"email": ["The email field is required."],
"uuid": ["The uuid field is required."]
}
}

Code Examples

cURL

curl -X POST https://api.example.com/api/v1/users/restore \
-H "Content-Type: application/json" \
-d '{
"email": "member@example.com",
"uuid": "550e8400-e29b-41d4-a716-446655440000"
}'

Notes

  • Bu endpoint token gerektirmez, email ve UUID doğrulaması yapar
  • Güvenlik için email ve UUID eşleşmesi kontrol edilir
  • Sadece soft delete ile silinmiş kullanıcılar geri yüklenebilir