Create dbt environment
Create a new dbt environment on the specified connection. A dbt environment allows you to connect Omni to a specific dbt project and manage dbt-related functionality within the connection context.
dbt environments can be personal (owned by a single user) or shared (owned by no one). To create:
- A personal environment for yourself, you’ll need Restricted Querier permissions or higher on the associated Omni model
- A personal environment for another user, you’ll need Organization Admin permissions
- A shared environment, you’ll need Connection Admin or Organization Admin permissions
Authorizations
Can be either an Organization API Key or Personal Access Token (PAT).
Include in the Authorization header as: Bearer YOUR_TOKEN
Path Parameters
The unique identifier of the connection
Body
The name of the dbt environment
1"Production dbt"
The target schema for the environment
1"analytics"
Whether deferral is enabled for this environment. Defaults to false. Ignored (forced to false) for the default (production) environment.
false
Defines the owner of the environment, which also determines the type of environment (personal or shared) that is created.
- Personal environment - Use the ID of the user that owns the environment. Organization Admin permissions are required to set the ID of a user other than the authenticating user.
- Shared environment - Set to
null. Requires Connection Admin or Organization Admin permissions.
"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.
Response
dbt environment created successfully
Unique identifier of the dbt environment
The name of the dbt environment
Whether this is the default environment
Whether deferral is enabled for this environment. Ignored (forced to false) for the default (production) 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

