Actions54
- Application Actions
- Database Actions
- Deployment Actions
- Project Actions
- Server Actions
- Service Actions
- Team Actions
Service → Create Environment Variable
AI-generatedSummary
Create a new environment variable for a specified service by providing the service UUID, environment variable key, value, and an optional preview flag.
Inputs
- serviceUuid (required) — The UUID of the service to which the environment variable will be added. Can be selected from a list or provided dynamically via expression.
- envKey (required) — The name (key) of the environment variable to create.
- envValue (required) — The value of the environment variable.
- isPreview — A boolean flag indicating whether the environment variable is for preview deployments only (defaults to false).
Output shape
a single JSON object representing the created environment variable or response from the API.
The request is sent as a POST to the endpoint '/api/v1/services/{serviceUuid}/envs' with the body containing { key, value, is_preview }. The response includes details of the newly created environment variable.