set_variables
Set environment variables for a Railway service using project, environment, and service IDs, with key-value pairs as JSON. Upserts by adding or updating variables.
Instructions
Set one or more environment variables (upsert)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | Yes | The project ID | |
| serviceId | Yes | The service ID | |
| variables | Yes | JSON object of key-value pairs, e.g. {"PORT":"3000","NODE_ENV":"production"} | |
| environmentId | Yes | The environment ID |