---
title: "Update a Database Connection"
method: PATCH
path: "/lib/database-connections/{id}"
tags: ["database-connections"]
---

# Update a Database Connection

`PATCH /lib/database-connections/{id}`

Update the specified Database Connection.</br></br>Provide a complete representation of the Database Connection that you want to update in the request body. This endpoint does not support partial updates. Cribl removes any omitted fields when updating the Database Connection.</br></br>Confirm that the configuration in your request body is correct before sending the request. If the configuration is incorrect, the updated Database Connection might not function as expected.

## Path parameters

- `id` string, required

## Request body

- DatabaseConnectionConfig
  - `authType` string, required
  - `configObj` string
  - `connectionString` string
  - `connectionTimeout` number
  - `credsSecrets` string
  - `databaseType` 'mysql' | 'oracle' | 'postgres' | 'sqlserver', required
  - `description` string, required
  - `id` string, required
  - `password` string
  - `requestTimeout` number
  - `tags` string
  - `textSecret` string
  - `user` string

## Response `200`

a list of DatabaseConnectionConfig objects

- CountedDatabaseConnectionConfig
  - `count` integer — number of items present in the items array
  - `items` DatabaseConnectionConfig[]
    - `authType` string, required
    - `configObj` string
    - `connectionString` string
    - `connectionTimeout` number
    - `credsSecrets` string
    - `databaseType` 'mysql' | 'oracle' | 'postgres' | 'sqlserver', required
    - `description` string, required
    - `id` string, required
    - `password` string
    - `requestTimeout` number
    - `tags` string
    - `textSecret` string
    - `user` string

## Other responses

- `401` — Unauthorized
- `500` — Unexpected error

## Changes

- **2026-03-06** `11df16b26c1d` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/criblio/apis/cribl-api-reference/changes/lib/database-connections/:id/patch.md)

---

[API](https://skmtc.dev/criblio/apis/cribl-api-reference.md) · [All operations](https://skmtc.dev/criblio/apis/cribl-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/criblio/cribl-api-reference/revisions/11df16b26c1d/schema)
