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
Body
Defines the owner of the environment, which also determines the type of environment (personal or shared) that is created.
- Personal environment - Use the organization membership ID of the user that owns the environment, not their user ID. Organization Admin permissions are required to set the ID of a user other than the authenticating user. Get your own membership ID from the Who Am I API, or another user's from the Get model roles API.
- Shared environment - Set to
null. Requires Connection Admin or Organization Admin permissions.
"550e8400-e29b-41d4-a716-446655440000"
Response
dbt environment created successfully

