Skip to main content
Using our API via a dedicated deployment? Just replace api.langdock.com with your deployment’s base URL: <deployment-url>/api/public
Updates the properties of an existing integration. Only provide the fields you want to change.

Required Scopes

This endpoint requires the INTEGRATION_API scope.

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

const axios = require("axios");

async function updateIntegration(integrationId) {
  const response = await axios.patch(
    `https://api.langdock.com/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)

{
  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
Langdock intentionally blocks browser-origin requests to protect your API key and ensure your applications remain secure. For more information, please see our guide on API Key Best Practices.