Update environment variable

http
PATCH /projects/{project_reference}/environments/{environment_id}/variables/{key}

Change the value or the key of one environment variable. Requires project.env_vars.write.

Parameters

NameInRequiredDescription
project_referencepathYes
environment_idpathYesEnvironment ID containing the variable.
keypathYesEnvironment variable key.

Request body

FieldTypeRequiredDescription
new_keystringNew environment variable key.
valuestringReplacement environment variable value.

Responses

StatusDescription
200Environment variable updated; the value is masked
400Bad request
401Unauthorized
403Forbidden
404Not found
409Conflict
500Server error
503internal: authentication state is temporarily unavailable and the request was not processed; retry shortly.