Mutation
mutation CreateEnvironment($input: CreateEnvironmentInput!) {
createEnvironment(input: $input) {
environment {
slug
type
name
isDefault
branch
dbtVersion
}
}
}Variables
{
"input": {
"type": "SCHEDULER",
"name": "string"
}
}Response
{
"data": {
"createEnvironment": {
"environment": {
"slug": "string",
"type": "SCHEDULER",
"name": "string",
"isDefault": true,
"branch": "string",
"dbtVersion": "string"
}
}
}
}createEnvironment
Creates an environment in the key’s workspace. A new agent environment defers to the default Bolt environment. Needs environments:write.
MUTATION
createEnvironment(input: CreateEnvironmentInput!): CreateEnvironmentPayload!Arguments
input
required
The environment to create.
Returns
environment
The new environment, or the existing one when the same input was sent before.
Mutation
mutation CreateEnvironment($input: CreateEnvironmentInput!) {
createEnvironment(input: $input) {
environment {
slug
type
name
isDefault
branch
dbtVersion
}
}
}Variables
{
"input": {
"type": "SCHEDULER",
"name": "string"
}
}Response
{
"data": {
"createEnvironment": {
"environment": {
"slug": "string",
"type": "SCHEDULER",
"name": "string",
"isDefault": true,
"branch": "string",
"dbtVersion": "string"
}
}
}
}