Mutation
mutation CreateWarehouseConnection($input: CreateWarehouseConnectionInput!) {
createWarehouseConnection(input: $input) {
warehouseConnection {
scope
environment {
slug
type
name
isDefault
branch
dbtVersion
}
connectionId
type
isDefault
name
}
}
}Variables
{
"input": {
"scope": "SCHEDULER",
"adapter": {}
}
}Response
{
"data": {
"createWarehouseConnection": {
"warehouseConnection": {
"scope": "SCHEDULER",
"environment": {
"slug": "string",
"type": "SCHEDULER",
"name": "string",
"isDefault": true,
"branch": "string",
"dbtVersion": "string"
},
"connectionId": "string",
"type": "SNOWFLAKE",
"isDefault": true,
"name": "string"
}
}
}
}createWarehouseConnection
Tests a new connection, then saves it. A refused connection is a CONNECTION_TEST_FAILED error and saves nothing. One that exists with the same settings is returned unchanged; with other settings it is CONFLICT. Saving redeploys the workspace’s Bolt schedules; a COST connection also starts Radar’s cost sync. A DEVELOPMENT_SHARED connection is saved without a test and rewrites every user’s dbt profile; each user’s own connection is tested in their IDE onboarding. Needs connections:write.
MUTATION
createWarehouseConnection(input: CreateWarehouseConnectionInput!): CreateWarehouseConnectionPayload!Arguments
input
required
The connection.
Returns
warehouseConnection
The created connection.
Mutation
mutation CreateWarehouseConnection($input: CreateWarehouseConnectionInput!) {
createWarehouseConnection(input: $input) {
warehouseConnection {
scope
environment {
slug
type
name
isDefault
branch
dbtVersion
}
connectionId
type
isDefault
name
}
}
}Variables
{
"input": {
"scope": "SCHEDULER",
"adapter": {}
}
}Response
{
"data": {
"createWarehouseConnection": {
"warehouseConnection": {
"scope": "SCHEDULER",
"environment": {
"slug": "string",
"type": "SCHEDULER",
"name": "string",
"isDefault": true,
"branch": "string",
"dbtVersion": "string"
},
"connectionId": "string",
"type": "SNOWFLAKE",
"isDefault": true,
"name": "string"
}
}
}
}