Delete Routing Rule
Permanently remove a routing rule. The rule and all its conditions are deleted from the database in a single transaction. Traffic that previously matched this rule falls through to the next matching rule by priority, or to the endpoint's default routing (round-robin) if none match.
If you want to disable a rule temporarily, use PUT with enabled: false instead — that preserves the rule for later re-enabling.
Path parameters
uuid string (uuid) Req
The endpoint's
uuid from /endpoints.rule_uuid string (uuid) Req
The routing rule's
uuid from the list. Resolved under this endpoint only.Deprecated: the legacy integer id is still accepted in the path until the sunset, answered with Deprecation and Sunset headers. Use the uuid.
Response (204 No Content)
Empty body on success.
Errors
400 Bad Request
An integer rule id after the sunset (
integer_id_unsupported).401 Unauthorized
Missing auth.
404 Not Found
Endpoint or rule doesn't exist (or doesn't belong to the calling user). A rule of another endpoint, or an unknown
rule_uuid, returns 404 (Routing rule not found).Request
curl -X DELETE "https://api.ngris.com/v1/endpoints/019bb1e4-e785-77d2-9966-c3cff31d0a0e/routing-rules/019b962b-971a-77df-97b0-e3905fa06cd4" \
-H "X-API-KEY: <your_api_key>"
Python
from ngris import Ngris
client = Ngris(api_key="<your_api_key>")
client.routing_rules.delete("019bb1e4-e785-77d2-9966-c3cff31d0a0e", "019b962b-971a-77df-97b0-e3905fa06cd4")
Response — 204 No Content
Was this helpful?