v1
latestOpenAPI 3.1.02026-07-2618690613.4 KBdbt
Create dbt environment
<Note> This endpoint requires **Connection Admin** permissions for the connection. </Note>Create a new dbt environment on the specified connection, enabling programmatic environment management.
A dbt environment allows you to connect Omni to a specific dbt project and manage dbt-related functionality within the connection context.
post/v1/connections/{connectionId}/dbt/environments
Path parameters
connectionIdstring uuid required
The unique identifier of the connection
Request body
Example request
{
"name": "Production dbt",
"targetSchema": "analytics",
"ownerId": "550e8400-e29b-41d4-a716-446655440000",
"targetDatabase": "analytics_db",
"targetName": "my_project",
"targetRole": "transformer",
"variables": [
{
"name": "DBT_TARGET",
"value": "production"
}
]
}Response
dbt environment created successfully