Coolify icon

Coolify

Interact with Coolify to manage applications, services, databases, servers, deployments and more.

Service → Update Environment Variable

AI-generated

Summary

Update an existing environment variable for a specified service in Coolify by providing the service's UUID, the variable's key, value, and a flag indicating if it is for preview environments.

Inputs

  • serviceUuid (required) — UUID of the target service to update the environment variable for. Selectable from a list or via expression.
  • envKey (required) — The key (name) of the environment variable to update.
  • envValue (required) — The new value for the environment variable.
  • isPreview — Boolean flag indicating whether this environment variable applies only to preview environments. Defaults to false.

Output shape

a single record

Returns the updated environment variable details as the response body from the Coolify API. Errors will be reported on failure.

Links

Discussion