Ana içeriğe geç

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ükleme
  • applications.restore.own - Sadece kendi başvurularını geri yükleme

Request

Headers

HeaderDeğerZorunlu
AuthorizationBearer \{token\}Evet

Path Parameters

ParametreTipZorunluAçıklama
uuidstringEvetBaş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_active durumu korunur