Get your free beta license ↗
API operation · domains group
DELETE

/domains/{name}/modsec/disabled-rules/{rule}

First published 19 Nov 20260.2.30Unchanged since publication

Remove a domain's setting that disables a ModSecurity rule

Who may call it
AdministratorResellerCustomer
Token scope, any of
domainsall
Answers200 OK

The domain's owner and the reseller who manages the owner can remove a setting made by the owner. Only an administrator can remove a setting made by an administrator. The API returns 400 if the rule number is outside the accepted format of 1 to 8 digits.

When UrbeStack manages ModSecurity, it updates its Apache configuration, tests it, and reloads Apache. If Apache rejects the configuration, UrbeStack restores the previous configuration and discards the change. The response lists the rules that remain disabled for the domain.

As a command

Run as root on the server

Parameters

namepath ·DomainNameRequired
rulepath ·integer, 1 or moreRequired

Example

See the API overview for how to set $API and $TOKEN.
Request
curl -sS -X DELETE "$API/domains/example.com/modsec/disabled-rules/1" \
  -H "Authorization: Bearer $TOKEN"
Response · 200 OK
{
  "apache": "text",
  "by_owner": 1,
  "changed": 1,
  "domain": "example.com",
  "files_changed": 1,
  "left": 1,
  "max": 1,
  "owner": "text",
  "rules": [
    {
      "at": "text",
      "by": "owner",
      "by_name": "text",
      "domain": "example.com",
      "gone": true,
      "group": "text",
      "id": 1,
      "message": "text",
      "owner": "text",
      "paranoia_level": 1,
      "rule": 1,
      "score": 1,
      "severity": "critical"
    }
  ],
  "total": 1
}

Errors

14 errors, each a status and a sentence
400--as is owner or administrator
400--id is the number of a row of the list
400A rule is named by its number
400Domain name required
400Domain name too long
400Invalid domain name
400Say which rule: --rule NUMBER, or --id ID
400id is the number of a row of the list
401Authentication required
403A rule is put back by its number in the domain
403A rule turned off for every domain is put back by an administrator
403Rule <rule_id> was turned off for <name> by the administrator, who is the one to put it back
404Domain '<domain>' not found
404No rule turned off has that number
Generated from release 0.2.35 (current) · the API’s own descriptionThis entry has been unchanged since it was first published in release 0.2.30 on 19 Nov 2026.
urbestack.com/docs/api/delete-domains-name-modsec-disabled-rules-rule/