v4

latestOpenAPI 3.1.02026-08-01207318738.7 KB
Models

Set branch dbt environment

Set the active dbt environment on a branch.

post/api/v1/models/{modelId}/branch/{branchName}/dbt

Path parameters

modelIdstring uuid required

Model UUID

Example:123e4567-e89b-12d3-a456-426614174000

Model UUID

branchNamestring required

Branch name

Example:feature/new-metrics

Branch name

Request body

dbt_environment_idstring uuid required

ID of the dbt environment to activate on this branch

dbt_git_branchstring

Git branch to associate with the dbt environment

Example request

{
  "dbt_environment_id": "123e4567-e89b-12d3-a456-426614174000",
  "dbt_git_branch": "feature/new-metrics"
}

Response

dbt environment set successfully

successboolean required

Whether the operation was successful

Example response

{
  "success": true
}