Mutation
mutation UpdateWarehouseConnection($input: UpdateWarehouseConnectionInput!) {
updateWarehouseConnection(input: $input) {
warehouseConnection {
scope
environment {
slug
type
name
isDefault
branch
dbtVersion
}
connectionId
type
isDefault
name
}
}
}Variables
{
"input": {
"scope": "SCHEDULER",
"adapter": {}
}
}Response
{
"data": {
"updateWarehouseConnection": {
"warehouseConnection": {
"scope": "SCHEDULER",
"environment": {
"slug": "string",
"type": "SCHEDULER",
"name": "string",
"isDefault": true,
"branch": "string",
"dbtVersion": "string"
},
"connectionId": "string",
"type": "SNOWFLAKE",
"isDefault": true,
"name": "string"
}
}
}
}updateWarehouseConnection
Tests a connection’s new settings, then saves them. A connection that doesn’t exist is NOT_FOUND. A refused connection is a CONNECTION_TEST_FAILED error and saves nothing. A change redeploys the workspace’s Bolt schedules; a COST change also starts Radar’s cost sync. A DEVELOPMENT_SHARED connection is saved without a test, and a change rewrites every user’s dbt profile. Needs connections:write.
MUTATION
updateWarehouseConnection(input: UpdateWarehouseConnectionInput!): UpdateWarehouseConnectionPayload!Arguments
input
required
The connection.
Returns
warehouseConnection
The updated connection.
Mutation
mutation UpdateWarehouseConnection($input: UpdateWarehouseConnectionInput!) {
updateWarehouseConnection(input: $input) {
warehouseConnection {
scope
environment {
slug
type
name
isDefault
branch
dbtVersion
}
connectionId
type
isDefault
name
}
}
}Variables
{
"input": {
"scope": "SCHEDULER",
"adapter": {}
}
}Response
{
"data": {
"updateWarehouseConnection": {
"warehouseConnection": {
"scope": "SCHEDULER",
"environment": {
"slug": "string",
"type": "SCHEDULER",
"name": "string",
"isDefault": true,
"branch": "string",
"dbtVersion": "string"
},
"connectionId": "string",
"type": "SNOWFLAKE",
"isDefault": true,
"name": "string"
}
}
}
}