Write environment variable

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

Set one environment variable, creating it or replacing its value. Requires project.env_vars.write.

Parameters

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

Request body

FieldTypeRequiredDescription
valuestringYesEnvironment variable value.

Responses

StatusDescription
200Environment variable created or replaced; 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.