Skip to main content
POST
Error

Path Parameters

projectUuid
string<uuid>
required

Stringified UUIDv4. See RFC 4112

Pattern: [0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-4[0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}

Body

application/json
dbtConnection
object
required
name
string
required
warehouseLocation
object

Where in the warehouse a set of models lives — the two levels of a table reference, whatever a given warehouse calls them (BigQuery project and dataset, Snowflake database and schema, Databricks catalog and schema). A null field means "inherit from the project's warehouse connection".

Response

Created

results
object
required

Non-sensitive view of a dbt source for API responses — never includes the decrypted connection (which holds credentials). The primary source is synthesised from the project's own dbt_connection. repository, branch and projectSubPath are the git-backed source's identity (null for non-git connections); they are safe to expose — only secrets are stripped.

hasCredentialError is always false for the synthesised primary source. See ProjectDbtSource for what it means on an additional source.

warehouseLocation is where this source's models live in the project's warehouse. For the primary source it is the location the project's warehouse connection already points at.

status
enum<string>
required
Available options:
ok