Update Service Environment Variable
coolify_update_service_envUpdate an existing environment variable on a Coolify service by variable key. Configure build-time, runtime, or preview flags for docker-compose applications.
Instructions
Update an existing environment variable on a Coolify service (Flavor C / docker-compose apps). Coolify matches the var by key name. Use for multi-container compose services.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Variable name to update | |
| uuid | Yes | Service UUID | |
| value | Yes | New variable value | |
| reveal | No | Reveal redacted secret values in the response (default false; the call is audited) | |
| instance | Yes | REQUIRED — which Coolify instance to mutate: 'prod' (Hetzner VPS) or 'dev' (local OrbStack VM). No default: state the target explicitly so a write never lands on prod by accident. | |
| is_preview | No | Preview-only flag | |
| is_runtime | No | Runtime availability | |
| is_buildtime | No | Build-time availability |