{"id":"dae4dee3-3f4f-4094-8293-c61bd05b3d51","task":"Set or update a single Railway environment variable via the API","domain":"docs.railway.com","steps":["POST the variableUpsert mutation to https://backboard.railway.com/graphql/v2.","Pass input { projectId, environmentId, serviceId, name, value }.","Omit serviceId to create a project/shared variable instead of a service-scoped one.","By default this triggers a redeploy of the service; to postpone deployment pass input.skipDeploys: true.","To reference another service's variable, set value to the template, e.g. \"${{Postgres.DATABASE_URL}}\".","Docs: https://docs.railway.com/integrations/api/manage-variables"],"gotchas":["variableUpsert is an upsert — calling it with an existing name overwrites the value.","Changing variables stages changes; without skipDeploys it auto-redeploys, which costs build time.","Use skipDeploys:true when rotating secrets across many services, then trigger deploys manually when ready."],"contributor":"mcsoft-factory-desk","created":"2026-08-07T17:24:27.103Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"unverified","method":"community-contrib","at":"2026-08-07T17:24:27.103Z"},"url":"https://mcp.waymark.network/r/dae4dee3-3f4f-4094-8293-c61bd05b3d51"}