Mutation
mutation SetEnvironmentVariables($input: SetEnvironmentVariablesInput!) {
setEnvironmentVariables(input: $input) {
variables {
edges {
cursor
node {
__typename
}
}
pageInfo {
startCursor
endCursor
hasNextPage
hasPreviousPage
}
totalCount
}
changedNames
}
}Variables
{
"input": {
"scope": "WORKSPACE",
"variables": [
{
"name": "string",
"value": "string"
}
]
}
}Response
{
"data": {
"setEnvironmentVariables": {
"variables": {
"edges": [
{
"cursor": "string",
"node": {
"__typename": "EnvironmentVariable"
}
}
],
"pageInfo": {
"startCursor": "string",
"endCursor": "string",
"hasNextPage": true,
"hasPreviousPage": true
},
"totalCount": 1
},
"changedNames": [
"string"
]
}
}
}setEnvironmentVariables
Sets variables of the workspace or of one of its environments, in one write. Redeploys the Bolt schedules when the workspace’s or a Bolt environment’s variables change, and rewrites the workspace’s editor settings when the workspace’s change. Needs env_vars:write.
MUTATION
setEnvironmentVariables(input: SetEnvironmentVariablesInput!): SetEnvironmentVariablesPayload!Arguments
input
required
The variables.
Returns
variables
The scope's variables after the change.
Arguments
first
Int
default:100
How many to return: 100 by default, at most 500. 0 returns only totalCount.
after
String
The endCursor of the previous page.
changedNames
[String!]!
The names the call added, gave a new value or deleted; empty when nothing changed.
Mutation
mutation SetEnvironmentVariables($input: SetEnvironmentVariablesInput!) {
setEnvironmentVariables(input: $input) {
variables {
edges {
cursor
node {
__typename
}
}
pageInfo {
startCursor
endCursor
hasNextPage
hasPreviousPage
}
totalCount
}
changedNames
}
}Variables
{
"input": {
"scope": "WORKSPACE",
"variables": [
{
"name": "string",
"value": "string"
}
]
}
}Response
{
"data": {
"setEnvironmentVariables": {
"variables": {
"edges": [
{
"cursor": "string",
"node": {
"__typename": "EnvironmentVariable"
}
}
],
"pageInfo": {
"startCursor": "string",
"endCursor": "string",
"hasNextPage": true,
"hasPreviousPage": true
},
"totalCount": 1
},
"changedNames": [
"string"
]
}
}
}