v1

latestOpenAPI 3.1.02026-07-2618690613.4 KB
dbt

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

dbt_environment_idstring uuid required

The ID of the dbt environment to set as active for the branch

dbt_git_branchstring

Optional git branch name to associate with the dbt environment

Example request

{
  "dbt_environment_id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
  "dbt_git_branch": "feature/branch"
}

Response

dbt environment configuration updated successfully

successboolean

Example response

{
  "success": true
}