Adapters

POST /api/v3/accounts/{account_id}/projects/{project_id}/adapters/

Changed on

Create a new adapter for a project. The ID from this adapter can be used to create Connections or Credentials when necessary.

Request

  • Base URL
    https://cloud.getdbt.com
  • Auth
    HTTP bearer

Path parameters

account_idinteger required
project_idinteger required

Request body

account_idinteger required
project_idinteger required
created_by_idinteger
created_by_service_token_idinteger
adapter_version'apache_spark_v0' | 'databricks_spark_v0' | 'databricks_v0' | 'trino_v0' | 'snowflake_v0' | 'bigquery_v0' | 'bigquery_v1' | 'postgres_v0' | 'redshift_v0' | 'salesforce_v0' | 'synapse_v0' | 'fabric_v0' | 'athena_v0' | 'teradata_v0' | 'clickhouse_v0' required
  • apache_spark_v0 - apache_spark_v0
  • databricks_spark_v0 - databricks_spark_v0
  • databricks_v0 - databricks_v0
  • trino_v0 - trino_v0
  • snowflake_v0 - snowflake_v0
  • bigquery_v0 - bigquery_v0
  • bigquery_v1 - bigquery_v1
  • postgres_v0 - postgres_v0
  • redshift_v0 - redshift_v0
  • salesforce_v0 - salesforce_v0
  • synapse_v0 - synapse_v0
  • fabric_v0 - fabric_v0
  • athena_v0 - athena_v0
  • teradata_v0 - teradata_v0
  • clickhouse_v0 - clickhouse_v0
metadata_jsonunknown required
stateinteger required

A value of 1 means this entity is active and a value of 2 means this entity is deleted

Example request

{
  "state": 1
}

Response

Example response

{
  "data": {
    "state": 1
  }
}

Changes

    • breaking

      for the path request parameter account_id, the format changed from no format to int64

    • breaking

      for the path request parameter project_id, the format changed from no format to int64

    • warning

      added the new clickhouse_v0 enum value to the / response property for the response status

    • info

      added the new clickhouse_v0 enum value to the request property (media type: application/json)

    • info

      added the new clickhouse_v0 enum value to the request property (media type: application/x-www-form-urlencoded)

    • info

      added the new clickhouse_v0 enum value to the request property (media type: multipart/form-data)