Delete Firewall Condition
Permanently remove a condition from a policy. The remaining conditions still compose per their logical_operator chain to determine whether the policy fires — removing one condition changes which requests the policy matches.
Be careful when removing conditions from a block policy — you might suddenly start blocking legitimate traffic. Disable the policy first (PUT /v1/firewall/policies/{uuid} with enabled: false), verify the conditions you want, then re-enable.
Path parameters
uuid string (uuid) Req
condition_uuid string (uuid) Req
The condition's
uuid (= its id) from the policy's conditions. Resolved only under the policy in the path.Response (204 No Content)
Empty body on success.
Errors
401 Unauthorized
Missing auth.
404 Not Found
Policy or condition doesn't exist (a condition resolves only under its own policy), belongs to another account, or a path segment isn't a uuid.
Request
curl -X DELETE "https://api.ngris.com/v1/firewall/policies/019c32cb-35d7-786f-b2c5-d108951e23d8/conditions/019c4790-e565-733a-8f1b-52bc76befe65" \
-H "X-API-KEY: <your_api_key>"
Python
from ngris import Ngris
client = Ngris(api_key="<your_api_key>")
client.firewall.delete_condition("019c32cb-35d7-786f-b2c5-d108951e23d8", "019c4790-e565-733a-8f1b-52bc76befe65")
Response — 204 No Content
Was this helpful?