Models
Read branch dbt environment
Read the dbt environment a branch resolves to, including the dbt git branch it compiles against. A branch with no environment of its own resolves to the connection's default (production) environment, reported with is_default_environment: true.
get/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
Response
The dbt environment the branch resolves to
Example response
{
"git_branch": "feature/new-metrics",
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Production"
}Changes
Changed in 1 of the 23 revisions of this API.1
- ○
endpoint added
endpoint-added
- ○