v1
latestOpenAPI 3.1.02026-07-2618690613.4 KBdbt
Set dbt environment on model branch
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.
post/v1/models/{modelId}/branch/{branchName}/dbt
Path parameters
modelIdstring uuid required
The unique identifier of the model
branchNamestring required
The name of the branch to configure
Request body
Example request
{
"dbt_environment_id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"dbt_git_branch": "feature/branch"
}Response
dbt environment configuration updated successfully
Example response
{
"success": true
}