Update redirect/rewrite rule priority
render_patch_routeUpdate the priority of a redirect or rewrite rule to control the order in which rules are applied to incoming requests.
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.
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 |