Integration güncelle
Mevcut bir entegrasyonun özelliklerini güncelleyin
Mevcut bir entegrasyonun özelliklerini günceller. Yalnızca değiştirmek istediğiniz alanları gönderin.
Base URL
https://api.ajan.io/integrations/v1/{integrationId}Dedicated deployments Tüm isteklerde
api.ajan.com'u/api/publicile değiştirin.
Required Scopes
Bu endpoint INTEGRATION_API kapsamı gerektirir.
Parameters
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
integrationId | string | Yes | Entegrasyonun UUID'si |
Request Body
Tüm alanlar isteğe bağlıdır. Yalnızca güncellemek istediğiniz alanları ekleyin.
| Parameter | Type | Description |
|---|---|---|
name | string | Entegrasyon adı (maks. 40 karakter) |
description | string | Entegrasyon açıklaması (maks. 90 karakter) |
iconUrl | string | Entegrasyon ikonunun URL'si |
color | string | Entegrasyon için hex renk kodu |
Example
javascript
const axios = require("axios");
async function updateIntegration(integrationId) {
const response = await axios.patch(
`https://api.ajan.io/integrations/v1/${integrationId}`,
{
name: "Updated Integration Name",
description: "New description for the integration"
},
{
headers: {
Authorization: "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
}
}
);
console.log("Updated integration:", response.data.integration);
}
updateIntegration("550e8400-e29b-41d4-a716-446655440000");Response Format
Success Response (200 OK)
typescript
{
integration: {
id: string;
name: string;
description: string;
};
}Error Handling
| Status Code | Description |
|---|---|
| 400 | Geçersiz istek gövdesi veya entegrasyon ID |
| 401 | Geçersiz veya eksik API anahtarı |
| 403 | Bu entegrasyona erişim yok |
| 404 | Entegrasyon bulunamadı |
| 429 | Rate limit aşıldı |
ajan, API anahtarınızı korumak ve uygulamalarınızın güvenliğini sağlamak için tarayıcı kaynaklı istekleri bilinçli olarak engeller. Daha fazla bilgi için API Key Best Practices kılavuzuna bakın.