Skip to content
ajan.io

Docs menu

On this page

Update Integration

Update an existing integration's properties

Updates the properties of an existing integration. Only provide the fields you want to change.

Base URL

https://api.ajan.io/integrations/v1/{integrationId}

Required Scopes

This endpoint requires the INTEGRATION_API scope.

Parameters

Path Parameters

ParameterTypeRequiredDescription
integrationIdstringYesUUID of the integration

Request Body

All fields are optional. Only include fields you want to update.

ParameterTypeDescription
namestringIntegration name (max 40 characters)
descriptionstringIntegration description (max 90 characters)
iconUrlstringURL to the integration icon
colorstringHex color code for the integration

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 CodeDescription
400Invalid request body or integration ID
401Invalid or missing API key
403No access to this integration
404Integration not found
429Rate limit exceeded