Skip to main content
Beta. The routing rules endpoints are new and their response shapes may still change.
Updates one routing rule. Send only the fields you want to change; anything you leave out stays as it is. The change takes effect right away. You need the owner or manager role on the rule’s domain. Viewers get 403 forbidden.
Always call this endpoint from a server-side environment (backend API, serverless function, build script, etc.). Never include your API key in client-side code — it will be visible to anyone inspecting your frontend.
Programmatic (API key) access requires the Pro plan and above — requests from Starter accounts return 403 plan_upgrade_required.

Request

Headers

Path Parameters

Body Parameters

All fields are optional. Send only the ones you want to change. Each field follows the same rules as Create Routing Rule, including the source path patterns and target checks. You can’t move a rule to a different domain; create a new rule on the other domain instead. The domain comes from the URL, so leave domainId out of the body (sending a different one returns 400).

Changing the rule type

When you change ruleType, the rule’s target is checked again against the new type, and the status code is reset:

Example Request

Pause a rule:

Response

Success (200)

Error Responses

Examples

Switch a temporary redirect to permanent

Turn a redirect into a proxy