Update environment variable

updateEnvironmentVariable(input: UpdateEnvironmentVariableInput!): UpdateEnvironmentVariablePayload

Requires project.env_vars.write.

Arguments

ArgumentTypeRequired
inputUpdateEnvironmentVariableInput!Yes

Input fields

input

UpdateEnvironmentVariableInput

FieldTypeRequired
environmentIdID!Yes
keyString!Yes
newKeyStringNo
valueStringNo

Response

Returns UpdateEnvironmentVariablePayload. Open the type for its fields and nested types.

FieldType
environmentVariableEnvironmentVariable
errorString

Types marked with ! cannot be null. Lists use [Type] notation. The type index lists all published input and response types.

Example

graphql
mutation UpdateEnvironmentVariable($input: UpdateEnvironmentVariableInput!) {
  updateEnvironmentVariable(input: $input) {
    error
  }
}
json
{
  "input": {
    "environmentId": "00000000-0000-4000-8000-000000000001",
    "key": "example"
  }
}