variable_bulk_set
Create or update multiple environment variables simultaneously to migrate configurations, set up services, or apply bulk updates in Railway projects.
Instructions
[WORKFLOW] Create or update multiple environment variables at once
⚡️ Best for: ✓ Migrating configuration between services ✓ Initial service setup ✓ Bulk configuration updates
⚠️ Not for: × Single variable updates (use variable_set) × Temporary configuration changes
→ Prerequisites: service_list
→ Alternatives: variable_set
→ Next steps: deployment_trigger, service_restart
→ Related: variable_list, service_update
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | Yes | ID of the project containing the service | |
| environmentId | Yes | ID of the environment for the variables (usually obtained from service_list) | |
| variables | Yes | Object mapping variable names to values | |
| serviceId | No | Optional: ID of the service for the variables, if omitted updates shared variables) |