Need help? Get answers from the docs with Omni's in-app AI! Log in to your Omni instance and open the Omni Agent in the sidebar.
curl --request POST \
--url https://{instance}.omniapp.co/api/v1/models/{modelId}/branch/{branchName}/dbt \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"dbt_environment_id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"dbt_git_branch": "feature/branch"
}
'{
"success": true
}Sets the active dbt environment on a model branch. This endpoint allows you to programmatically configure which dbt environment a branch should use, enabling CI/CD pipelines to automate dbt environment configuration before triggering schema refreshes.
curl --request POST \
--url https://{instance}.omniapp.co/api/v1/models/{modelId}/branch/{branchName}/dbt \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"dbt_environment_id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"dbt_git_branch": "feature/branch"
}
'{
"success": true
}Documentation Index
Fetch the complete documentation index at: https://docs.omni.co/llms.txt
Use this file to discover all available pages before exploring further.
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 model
The name of the branch to configure
dbt environment configuration updated successfully
true
Was this page helpful?