Add header rule
render_add_headersAdd response header rules to a Render service by specifying header name, value, and request path. Configure custom headers for matching paths via the Render API.
Instructions
Add header rule. Add a response header rule to the service with the provided ID. Calls POST /services/{serviceId}/headers 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": {
"name": "<name>",
"path": "<path>",
"serviceId": "<serviceId>",
"value": "<value>"
},
"name": "render_add_headers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Header name | |
| path | Yes | The request path to add the header to. Wildcards will cause headers to be applied to all matching paths. | |
| value | Yes | Header value | |
| serviceId | Yes | The ID of the service |