v2

Swagger 2.02026-08-01331211921.0 KB
Pipelines

Update a variable for an environment

Update a deployment environment level variable.

put/repositories/{workspace}/{repo_slug}/deployments_config/environments/{environment_uuid}/variables/{variable_uuid}

Path parameters

workspacestring required

This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example {workspace UUID}.

repo_slugstring required

The repository.

environment_uuidstring required

The environment.

variable_uuidstring required

The UUID of the variable to update.

Request body

typestring required
uuidstring

The UUID identifying the variable.

keystring

The unique name of the variable.

valuestring

The value of the variable. If the variable is secured, this will be empty.

securedboolean

If true, this variable will be treated as secured. The value will never be exposed in the logs or the REST API.

Response

The deployment variable was updated.

typestring required
uuidstring

The UUID identifying the variable.

keystring

The unique name of the variable.

valuestring

The value of the variable. If the variable is secured, this will be empty.

securedboolean

If true, this variable will be treated as secured. The value will never be exposed in the logs or the REST API.