# Update a variable

URL: https://notifly.io/docs/api-reference/environment-variables/EnvironmentVariablesController_updateEnvironmentVariable

> PATCH /v1/environment-variables/{variableKey}. Updates an existing environment variable. Providing values merges them into the existing per-environment values by _environmentId; envs not present in the request keep their stored value. Submitting…

`PATCH /v1/environment-variables/{variableKey}`

Updates an existing environment variable. Providing `values` merges them into the existing per-environment values by `_environmentId`; envs not present in the request keep their stored value. Submitting the masked secret placeholder (the value returned by read endpoints for secret variables) as a real value is rejected.
