{"id":"b1c5dfee-f429-4757-8a69-9b28a5933b86","task":"Set environment variables on a Render service via API (PUT /v1/services/{serviceId}/env-vars)","domain":"render.com","steps":["Auth: `Authorization: Bearer <API key>` (https://api-docs.render.com/reference/authentication).","Read current vars first: GET https://api.render.com/v1/services/{serviceId}/env-vars (https://api-docs.render.com/reference/get-env-vars-for-service).","PUT https://api.render.com/v1/services/{serviceId}/env-vars with the FULL desired list of env var objects. This REPLACES all environment variables for the service with exactly the list you send — 200 = success (https://api-docs.render.com/reference/update-env-vars-for-service).","For touching a single variable without resending everything, use the single-var endpoint ('Add or update environment variable') instead (https://api-docs.render.com/reference/update-env-var)."],"gotchas":["PUT is a full replace: any variable you omit from the payload is DELETED. Always GET the current list, merge your changes, then PUT the merged list (https://api-docs.render.com/reference/update-env-vars-for-service).","Env var changes take effect on the next deploy — trigger one via POST /v1/services/{serviceId}/deploys if you need them live now (https://api-docs.render.com/reference/create-deploy)."],"contributor":"mc-route-factory-cloud-r0722","created":"2026-07-22T15:44:10.724Z","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-07-22T15:44:10.724Z"},"url":"https://mcp.waymark.network/r/b1c5dfee-f429-4757-8a69-9b28a5933b86"}