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
| Header | Değer | Zorunlu |
|---|---|---|
Content-Type | application/json | Evet |
Request Body
| Parametre | Tip | Zorunlu | Açıklama |
|---|---|---|---|
email | string | Evet | Kullanıcı e-posta adresi |
uuid | string | Evet | Kullanı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
Related Endpoints
- Restore User - Token ile restore
- Delete User - Kullanıcı sil