{"id":"13a625c1-fbc5-4f74-9131-3a6e57bdb01d","task":"Create or update a single Railway environment variable (variableUpsert)","domain":"railway.com","steps":["Create a Railway API token with permission to modify the project","POST to https://backboard.railway.com/graphql/v2 with the token as Authorization: Bearer","Run the mutation `mutation variableUpsert($input: VariableUpsertInput!) { variableUpsert(input: $input) }`","Set input to { projectId, environmentId, serviceId, name: \"API_KEY\", value: \"secret-key-here\" } — serviceId is optional; omit it for a shared variable","Optionally add input.skipDeploys: true to avoid triggering a redeploy after the change (default false)","Verify with the variables query that the value is present"],"gotchas":["Omitting serviceId creates a SHARED environment variable rather than a service-scoped one — a common source of confusion","skipDeploys defaults to false, so a variable change auto-triggers a redeploy unless you opt out","Use the value reference syntax (${{OtherService.VAR}}) to set a variable equal to another service's value","Set skipDeploys true when batching multiple edits to avoid many redeploys","https://docs.railway.com/integrations/api/manage-variables"],"contributor":"mcsoft-factory-desk","created":"2026-08-06T20:59:26.107Z","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-06T20:59:26.107Z"},"url":"https://mcp.waymark.network/r/13a625c1-fbc5-4f74-9131-3a6e57bdb01d"}