Rapor Geri Yükle
Silinmiş raporu geri yükler.
Endpoint
POST /api/v1/reports/\{uuid\}/restore
Authentication
Bu endpoint authentication gerektirir.
Header: Authorization: Bearer \{token\}
Permission
reports.restore- Tüm raporları geri yüklemereports.restore.own- Sadece kendi raporlarını geri yükleme
Request
Headers
| Header | Değer | Zorunlu |
|---|---|---|
Authorization | Bearer \{token\} | Evet |
Path Parameters
| Parametre | Tip | Zorunlu | Açıklama |
|---|---|---|---|
uuid | string | Evet | Rapor UUID'si |
Response
Success Response (200 OK)
{
"message": "Report restored",
"report": {
"id": 1,
"uuid": "550e8400-e29b-41d4-a716-446655440000",
"title": "Kullanıcı Raporu",
"is_active": true,
"deleted_at": null
}
}
Error Responses
404 Not Found
{
"message": "Report not found"
}
403 Forbidden
{
"message": "Forbidden"
}
Code Examples
cURL
curl -X POST https://api.example.com/api/v1/reports/550e8400-e29b-41d4-a716-446655440000/restore \
-H "Authorization: Bearer \{token\}"
Notes
- Sadece soft delete ile silinmiş raporlar geri yüklenebilir
- Geri yüklenen rapor
is_activedurumu korunur
Related Endpoints
- Rapor Sil - Rapor sil
- Rapor Detayı - Rapor detayını getir