Update redirect/rewrite rule priority
render_patch_routeUpdate the priority of a redirect or rewrite rule, moving it to the specified position and reordering other rules accordingly.
Instructions
Update redirect/rewrite rule priority. Update the priority for a particular redirect/rewrite rule. To apply redirect/rewrite rules to an incoming request, Render starts from the rule with priority 0 and applies the first encountered rule that matches the request's path (if any). Render increments the priority of other rules by 1 as necessary to make space for the updated rule. Calls PATCH /services/{serviceId}/routes/{routeId} 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": {
"priority": "<priority>",
"routeId": "<routeId>",
"serviceId": "<serviceId>"
},
"name": "render_patch_route"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| routeId | Yes | The id of the route | |
| priority | Yes | Redirect and Rewrite Rules are applied in priority order starting at 0. Moves this route to the specified priority and adjusts other route priorities accordingly. | |
| serviceId | Yes | The ID of the service |