Update a variable for an environment
Update a deployment environment level variable.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example {workspace UUID}.
The repository.
The environment.
The UUID of the variable to update.
Request Body required
Section titled “ Request Body required ”The updated deployment variable.
object
The UUID identifying the variable.
The unique name of the variable.
The value of the variable. If the variable is secured, this will be empty.
If true, this variable will be treated as secured. The value will never be exposed in the logs or the REST API.
Example generated
{ "type": "example", "uuid": "example", "key": "example", "value": "example", "secured": true}Responses
Section titled “ Responses ”The deployment variable was updated.
object
The UUID identifying the variable.
The unique name of the variable.
The value of the variable. If the variable is secured, this will be empty.
If true, this variable will be treated as secured. The value will never be exposed in the logs or the REST API.
Example generated
{ "type": "example", "uuid": "example", "key": "example", "value": "example", "secured": true}The account, repository, environment or variable with the given UUID was not found.
Base type for most resource objects. It defines the common type element that identifies an object’s type. It also identifies the element as Swagger’s discriminator.
object
object
Optional structured data that is endpoint-specific.
object
Example generated
{ "type": "example", "error": { "message": "example", "detail": "example", "data": {} }}