addEnvironmentVariable
Add an environment variable to an application environment.
addEnvironmentVariable(
input: EnvironmentVariableInput
): EnvironmentVariablesPayload
Example
- Query
- Variables
- Response
mutation ($input: EnvironmentVariableInput) {
addEnvironmentVariable(input: $input) {
environmentVariables {
total
}
}
}
{
"input": {
"applicationId": 42,
"environmentId": 42,
"name": "A name",
"reloadManifest": true,
"value": "value"
}
}
{
"data": {
"addEnvironmentVariable": {
"environmentVariables": {
"total": "42"
}
}
}
}
Arguments
addEnvironmentVariable.input ● EnvironmentVariableInput input common
The application, environment, and variable values to add.
Type
EnvironmentVariablesPayload object common
The updated environment variable list after a mutation.