KausateKausate Docs
Integrations
Viewing API version 2025-04-01. View the latest version.

Update integration

Update an existing integration's credentials.

PUT/v2/integrations/{datasourceSlug}
X-API-Key<token>

Sign up at Kausate.com to get an API key

In: header

Path Parameters

datasourceSlug*string

Query Parameters

customerId?|

Customer ID

Header Parameters

Kausate-Version?string
Default"2025-04-01"
Formatdate

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PUT "https://api.kausate.com/v2/integrations/YOUR_DATA_SOURCE" \
  -H "X-API-Key: $KAUSATE_API_KEY" \
  -H "Kausate-Version: 2025-04-01" \
  -H "Content-Type: application/json" \
  -d '{
  "secretValues": {
    "api_key": "YOUR_INTEGRATION_API_KEY"
  }
}'

Integration updated successfully

{
  "datasourceSlug": "string",
  "datasourceName": "string",
  "createdAt": "2019-08-24T14:15:22Z",
  "updatedAt": "2019-08-24T14:15:22Z"
}

Bad Request - Invalid input

{
  "detail": "Invalid datasource slug",
  "code": "request.invalid",
  "request_id": "req_01J8Z5V4Q2X9N7B3C6D1E0F2G4"
}

Unauthorized - No API key was supplied

{
  "detail": "API key is required",
  "code": "auth.unauthorized",
  "request_id": "req_01J8Z5V4Q2X9N7B3C6D1E0F2G4"
}

Forbidden - The API key is invalid, or valid but not entitled

{
  "detail": "Invalid API key",
  "code": "auth.forbidden",
  "request_id": "req_01J8Z5V4Q2X9N7B3C6D1E0F2G4"
}

Not Found - Integration not found

{
  "detail": "Integration not found",
  "code": "resource.not_found",
  "request_id": "req_01J8Z5V4Q2X9N7B3C6D1E0F2G4"
}

Unprocessable Entity - The request failed schema validation, or names a valid entity whose data cannot be served

{
  "detail": [
    {
      "loc": [
        "body",
        "kausateId"
      ],
      "msg": "Field required",
      "type": "missing"
    }
  ],
  "code": "request.invalid",
  "request_id": "req_01J8Z5V4Q2X9N7B3C6D1E0F2G4"
}

Internal Server Error

{
  "detail": "An unexpected error occurred. If this persists, please contact support@kausate.com",
  "code": "internal.unexpected",
  "request_id": "req_01J8Z5V4Q2X9N7B3C6D1E0F2G4"
}

Last updated on