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