Actions54
- Application Actions
- Database Actions
- Deployment Actions
- Project Actions
- Server Actions
- Service Actions
- Team Actions
Application → Update Environment Variable
AI-generatedSummary
Update an existing environment variable of a specific application by specifying the application UUID, the environment variable key, its new value, and whether it applies only to preview deployments.
Inputs
- applicationUuid (required) — The UUID of the application to update the environment variable for. Choose from a list of available applications or provide dynamically via an expression.
- envKey (required) — The key (name) of the environment variable to update (e.g., NODE_ENV).
- envValue (required) — The new value to assign to the environment variable.
- isPreview — Boolean flag indicating whether the environment variable is for preview deployments only. Defaults to false.
Output shape
a single JSON object representing the updated environment variable or API response
The operation sends a PATCH request to update the variable; the exact structure of the returned JSON depends on the Coolify API's response. No pagination applies as this is a single update.
Examples
Example 1: Update the environment variable 'API_KEY' to 'new-api-key-value' for a given application identified by its UUID, applying to production deployments.
Set 'applicationUuid' to the target application's UUID, 'envKey' to 'API_KEY', 'envValue' to 'new-api-key-value', and 'isPreview' to false or leave default.