Mutation
mutation SetDefaultWarehouseConnection($input: SetDefaultWarehouseConnectionInput!) {
setDefaultWarehouseConnection(input: $input) {
warehouseConnection {
scope
environment {
slug
type
name
isDefault
branch
dbtVersion
}
connectionId
type
isDefault
name
}
}
}Variables
{
"input": {
"scope": "SCHEDULER",
"connectionId": "string"
}
}Response
{
"data": {
"setDefaultWarehouseConnection": {
"warehouseConnection": {
"scope": "SCHEDULER",
"environment": {
"slug": "string",
"type": "SCHEDULER",
"name": "string",
"isDefault": true,
"branch": "string",
"dbtVersion": "string"
},
"connectionId": "string",
"type": "SNOWFLAKE",
"isDefault": true,
"name": "string"
}
}
}
}setDefaultWarehouseConnection
Makes a connection its environment’s default. Needs connections:write.
MUTATION
setDefaultWarehouseConnection(input: SetDefaultWarehouseConnectionInput!): SetDefaultWarehouseConnectionPayload!Arguments
input
required
The connection.
warehouseConnection
The connection, now its environment's default.
Mutation
mutation SetDefaultWarehouseConnection($input: SetDefaultWarehouseConnectionInput!) {
setDefaultWarehouseConnection(input: $input) {
warehouseConnection {
scope
environment {
slug
type
name
isDefault
branch
dbtVersion
}
connectionId
type
isDefault
name
}
}
}Variables
{
"input": {
"scope": "SCHEDULER",
"connectionId": "string"
}
}Response
{
"data": {
"setDefaultWarehouseConnection": {
"warehouseConnection": {
"scope": "SCHEDULER",
"environment": {
"slug": "string",
"type": "SCHEDULER",
"name": "string",
"isDefault": true,
"branch": "string",
"dbtVersion": "string"
},
"connectionId": "string",
"type": "SNOWFLAKE",
"isDefault": true,
"name": "string"
}
}
}
}