Delete Policy Rule

DELETE /v1/endpoints/{uuid}/policies/{policy_uuid}/rules/{rule_uuid}

Permanently remove a rule from a policy. The remaining rules continue to evaluate in priority order; the policy itself stays in place.

To temporarily disable a rule without removing it, PUT with enabled: false.

Path parameters

uuid string (uuid) Req
The endpoint's uuid from /endpoints.
policy_uuid string (uuid) Req
The policy's uuid. Resolved under this endpoint only.
rule_uuid string (uuid) Req
The rule's uuid (from the policy's rules). Resolved under this policy only.

Deprecated: legacy integer ids are still accepted in the path until the sunset, answered with Deprecation and Sunset headers. Use the uuids.

Response (204 No Content)

Empty body on success.

Errors

400 Bad Request
An integer policy or rule id after the sunset (integer_id_unsupported).
401 Unauthorized
Missing auth.
404 Not Found
Endpoint doesn't exist (Endpoint not found), the policy isn't one of this endpoint's (Policy not found), or the rule isn't one of this policy's (Rule not found).
Request
curl -X DELETE "https://api.ngris.com/v1/endpoints/019bb1e4-e785-77d2-9966-c3cff31d0a0e/policies/019b74e7-6fe8-7784-9d8a-9b7f9cb99a89/rules/019b7fe5-336a-7789-aeab-182ddfcd5711" \ -H "X-API-KEY: <your_api_key>"
Python
from ngris import Ngris client = Ngris(api_key="<your_api_key>") client.traffic_policies.delete_rule("019bb1e4-e785-77d2-9966-c3cff31d0a0e", "019b74e7-6fe8-7784-9d8a-9b7f9cb99a89", "019b7fe5-336a-7789-aeab-182ddfcd5711")
Response — 204 No Content
Was this helpful?
On this page
Delete Policy Rule
Was this helpful?