Create environment variable

createEnvironmentVariable(input: CreateEnvironmentVariableInput!): CreateEnvironmentVariablePayload

Requires project.env_vars.write.

Arguments

ArgumentTypeRequired
inputCreateEnvironmentVariableInput!Yes

Input fields

input

CreateEnvironmentVariableInput

FieldTypeRequired
environmentIdID!Yes
keyString!Yes
valueString!Yes

Response

Returns CreateEnvironmentVariablePayload. 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

query.graphql
mutation CreateEnvironmentVariable($input: CreateEnvironmentVariableInput!) {  createEnvironmentVariable(input: $input) {    error  }}
variables.json
{  "input": {    "environmentId": "00000000-0000-4000-8000-000000000001",    "key": "example",    "value": "example"  }}