Entegrasyon Güncelle
Entegrasyon bilgilerini günceller.
Endpoint
PUT /api/v1/integrations/\{uuid\}
PATCH /api/v1/integrations/\{uuid\}
Authentication
Bu endpoint authentication gerektirir.
Header: Authorization: Bearer \{token\}
Permission
integrations.manage- Tüm entegrasyonları güncellemeintegrations.manage.own- Sadece kendi entegrasyonlarını güncelleme
Request
Headers
| Header | Değer | Zorunlu |
|---|---|---|
Authorization | Bearer \{token\} | Evet |
Content-Type | application/json | Evet |
Path Parameters
| Parametre | Tip | Zorunlu | Açıklama |
|---|---|---|---|
uuid | string | Evet | Entegrasyon UUID'si |
Request Body
| Parametre | Tip | Zorunlu | Açıklama |
|---|---|---|---|
name | string | Hayır | Entegrasyon adı |
type | string | Hayır | Entegrasyon tipi (webhook, oauth, api) |
provider | string | Hayır | Sağlayıcı adı |
description | string | Hayır | Entegrasyon açıklaması |
config | object | Hayır | Yapılandırma ayarları (JSON) |
credentials | object | Hayır | Kimlik bilgileri (JSON, şifrelenmiş saklanır) |
status | string | Hayır | Durum (active, inactive, error, pending) |
metadata | object | Hayır | Ek metadata bilgileri (JSON) |
is_active | boolean | Hayır | Aktif durumu |
Example Request
{
"name": "Updated Stripe Webhook",
"status": "active",
"config": {
"webhook_url": "https://api.example.com/webhooks/stripe/v2",
"events": ["payment.succeeded", "payment.failed", "charge.refunded"]
}
}
Response
Success Response (200 OK)
{
"id": 1,
"uuid": "550e8400-e29b-41d4-a716-446655440000",
"name": "Updated Stripe Webhook",
"status": "active",
"config": {
"webhook_url": "https://api.example.com/webhooks/stripe/v2",
"events": ["payment.succeeded", "payment.failed", "charge.refunded"]
},
"updated_at": "2025-11-20T12:00:00.000000Z"
}
Error Responses
404 Not Found
{
"message": "Not Found"
}
403 Forbidden
{
"message": "Forbidden"
}
Code Examples
cURL
curl -X PATCH https://api.example.com/api/v1/integrations/550e8400-e29b-41d4-a716-446655440000 \
-H "Authorization: Bearer \{token\}" \
-H "Content-Type: application/json" \
-d '{
"name": "Updated Stripe Webhook",
"status": "active"
}'
Notes
.ownpermission'ı olan kullanıcılar sadece kendi entegrasyonlarını güncelleyebilirPUTtüm alanları günceller,PATCHsadece gönderilen alanları güncellercredentialsalanı güncellenirse şifrelenerek saklanır
Related Endpoints
- Entegrasyon Detayı - Entegrasyon detayını getir
- Entegrasyon Sil - Entegrasyon sil