Add or update secret file
render_add_or_update_secret_fileAdd or update a secret file for a service on Render by providing the service ID, file name, and content. Directly manage secret files set on the service.
Instructions
Add or update secret file. Add or update a particular secret file for a particular service. This only applies to secret files set directly on the service, not to secret files in a linked environment group. Calls PUT /services/{serviceId}/secret-files/{envVarKey} on the Render Public API.
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>",
"envVarKey": "<envVarKey>",
"serviceId": "<serviceId>"
},
"name": "render_add_or_update_secret_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | Request body. | |
| envVarKey | Yes | The file name of the secret file | |
| serviceId | Yes | The ID of the service |