Ana içeriğe geç

Entegrasyon Geri Yükle

Silinmiş entegrasyonu geri yükler.

Endpoint

POST /api/v1/integrations/\{uuid\}/restore

Authentication

Bu endpoint authentication gerektirir.

Header: Authorization: Bearer \{token\}

Permission

  • integrations.restore - Tüm entegrasyonları geri yükleme
  • integrations.restore.own - Sadece kendi entegrasyonlarını geri yükleme

Request

Headers

HeaderDeğerZorunlu
AuthorizationBearer \{token\}Evet

Path Parameters

ParametreTipZorunluAçıklama
uuidstringEvetEntegrasyon UUID'si

Response

Success Response (200 OK)

{
"id": 1,
"uuid": "550e8400-e29b-41d4-a716-446655440000",
"name": "Stripe Webhook",
"type": "webhook",
"is_active": true,
"deleted_at": null,
"user": {
"id": 1,
"email": "user@example.com"
}
}

Error Responses

404 Not Found

{
"message": "Integration not found"
}

400 Bad Request

{
"message": "Integration is not deleted"
}

403 Forbidden

{
"message": "Forbidden"
}

Code Examples

cURL

curl -X POST https://api.example.com/api/v1/integrations/550e8400-e29b-41d4-a716-446655440000/restore \
-H "Authorization: Bearer \{token\}"

Notes

  • Sadece soft delete ile silinmiş entegrasyonlar geri yüklenebilir
  • Geri yüklenen entegrasyon is_active durumu korunur
  • Entegrasyon zaten silinmemişse 400 hatası döner
  • Geri yüklenen entegrasyon tekrar çalışabilir