create_service_env
Add a key-value environment variable to a service using its UUID. Specify the variable name, value, and optional settings for preview and literal treatment.
Instructions
Create a new environment variable for a service. This adds a new key-value pair to the service's environment. Note: Setting is_build_time=true has no functional effect on services (they use pre-built images).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Environment variable name (e.g., "DATABASE_URL", "REDIS_HOST"). | |
| uuid | Yes | UUID of the service to add the environment variable to. | |
| value | Yes | Environment variable value. | |
| is_literal | No | Whether the value should be treated as a literal string without variable substitution. | |
| is_preview | No | Whether this variable applies to preview deployments. | |
| is_build_time | No | Whether this variable should be available during build time. Note: Has no functional effect on services (they use pre-built images). |