---
title: "Update dbt configuration"
method: PUT
path: "/v1/connections/{connectionId}/dbt"
tags: ["dbt"]
---

# Update dbt configuration

`PUT /v1/connections/{connectionId}/dbt`

<Note>
  **Connection Admin** permissions are required to use this endpoint.
</Note>

Update the dbt configuration for the specified connection.

## Path parameters

- `connectionId` string, uuid, required — ID of the connection where dbt is configured

## Request body

- object
  - `autogenRelationships` boolean, required — Automatically generate relationships from dbt
  - `branch` string, required — Git branch name
  - `dbtVersion` 'Auto' | '1.10' | '1.11', nullable — dbt version to use
  - `enableSemanticLayer` boolean — Enable [dbt semantic layer integration](/integrations/dbt/semantic-layer)
  - `enableVirtualSchemas` boolean, required — Enable virtual schemas from dbt
  - `projectRootPath` union — Path to dbt project root within repository
    - string
    - ''
  - `rotateKeys` boolean — Rotate SSH deploy keys
  - `sshUrl` string, required — SSH URL for git repository

## Response `200`

dbt configuration updated successfully

- object
  - `message` string, required — Success message
  - `success` boolean, required — Whether the operation succeeded

## Other responses

- `400` — Invalid request body or validation error
- `401` — Authentication required
- `403` — Permission denied - connection admin role required
- `404` — Connection not found
- `429` — Too Many Requests - Rate limit exceeded (60 requests/minute)

---

[API](https://skmtc.net/omni/apis/omni-api.md) · [All operations](https://skmtc.net/omni/apis/omni-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/omni/omni-api/versions/6b02f7349d0e/schema)
