This endpoint requires Connection Admin permissions for the connection.
Creates 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.
Can be either an Organization API Key or Personal Access Token (PAT).
Include in the Authorization header as: Bearer YOUR_TOKEN
The unique identifier of the connection
The name of the dbt environment
1"Production dbt"
The target schema for the environment
1"analytics"
Only valid with Organization API keys. The user ID of the owner for the dbt environment. Personal Access Tokens (PATs) automatically use the authenticated user as the owner.
"550e8400-e29b-41d4-a716-446655440000"
Target database override
"analytics_db"
Target name override
"my_project"
Target role override
"transformer"
Environment variables for the dbt environment. Note: While variables is not required, at least one variable object must be defined if variables is included in the request body.
dbt environment created successfully
Unique identifier of the dbt environment
The name of the dbt environment
Whether this is the default environment
The user ID of the owner of the dbt environment, or null
Target database override
Target name override
Target role override
Target schema for the environment
Environment variables