Set of operations available to create and update environment variables. You can learn more about environment variables here.
Creates a variable
Creates a new environment variable in a branch for a given project.
path Parameters
accountName
string · requiredThe name of the account. You can find this in your Zuplo Portal under Settings > Project Information.
projectName
string · requiredThe name of the project. You can find this in your Zuplo Portal under Settings > Project Information.
branchName
string · requiredThe name of the branch in your source control provider.
Request Body
name
string · requiredThe name of the variable. Must be named in SCREAMING_SNAKE_CASE.
Example: APP_ENVIRONMENT_KEYisSecret
boolean · requiredWhether the variable is a secret.
Example:value
string · requiredThe value of the variable.
Responses
branch
string · readOnly · requiredExample: previewcreatedOn
string · date-time · readOnly · requiredWhen the item was created.
Example: 2023-04-18T05:54:34.408ZupdatedOn
string · date-time · readOnly · requiredWhen the item was last updated.
Example: 2023-04-20T05:54:34.408Zname
string · requiredThe name of the variable. Must be named in SCREAMING_SNAKE_CASE.
Example: APP_ENVIRONMENT_KEYisSecret
boolean · requiredWhether the variable is a secret.
Example:value
string · requiredThe value of the variable.
Updates a variable
Update the value of a variable in a branch for a given project.
path Parameters
accountName
string · requiredThe name of the account. You can find this in your Zuplo Portal under Settings > Project Information.
projectName
string · requiredThe name of the project. You can find this in your Zuplo Portal under Settings > Project Information.
branchName
string · requiredThe name of the branch in your source control provider.
variableName
string · requiredThe name of the environment variable.
Request Body
value
stringThe value of the variable.
Responses
branch
string · readOnly · requiredExample: previewcreatedOn
string · date-time · readOnly · requiredWhen the item was created.
Example: 2023-04-18T05:54:34.408ZupdatedOn
string · date-time · readOnly · requiredWhen the item was last updated.
Example: 2023-04-20T05:54:34.408Zname
string · requiredThe name of the variable. Must be named in SCREAMING_SNAKE_CASE.
Example: APP_ENVIRONMENT_KEYisSecret
boolean · requiredWhether the variable is a secret.
Example:value
string · requiredThe value of the variable.