Update environment variables
render_update_env_vars_for_serviceReplace the full set of environment variables for a Render service with the provided list. Any variables not included are deleted, and the service restarts to apply changes.
Instructions
Update environment variables. Replace all environment variables for a service with the provided list of environment variables. Calls PUT /services/{serviceId}/env-vars on the Render Public API. Usage: This replaces the service's entire environment variable set: anything absent from body is deleted. To change one variable, read the current set with render_get_env_vars_for_service and send it back with your edit applied, or use render_update_env_var for a single key. Applying changes restarts the service.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"body": "<body>",
"serviceId": "<serviceId>"
},
"name": "render_update_env_vars_for_service"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | Request body. | |
| serviceId | Yes | The ID of the service |