API operation · security group
DELETE
/security/modsec/disabled-rules/{id}
First published 19 Nov 2026
0.2.30Unchanged since publicationRemove a setting that disables a ModSecurity rule
Who may call it
AdministratorResellerCustomer
Token scope, any of
securityallAnswers200 OK
Use an entry ID from GET /security/modsec/disabled-rules. The entry determines whether the removal applies server-wide or to a single domain. An administrator can remove the setting regardless of who disabled the rule.
When UrbeStack manages ModSecurity, it tests Apache's updated configuration before reloading Apache. If Apache rejects the configuration, UrbeStack restores the previous configuration and discards the removal. The response lists the rules still disabled at the selected scope.
As a command
Run as root on the serverParameters
idpath ·integer, 1 or moreRequiredExample
See the API overview for how to set $API and $TOKEN.Request
curl -sS -X DELETE "$API/security/modsec/disabled-rules/1" \ -H "Authorization: Bearer $TOKEN"
Response ·
200 OK"text"
Errors
15 errors, each a status and a sentence400--as is owner or administrator400--id is the number of a row of the list400A rule is named by its number400Domain name required400Domain name too long400Invalid domain name400Invalid id400Say which rule: --rule NUMBER, or --id ID400id is the number of a row of the list401Authentication required403A rule is put back by its number in the domain403A rule turned off for every domain is put back by an administrator403Rule <rule_id> was turned off for <name> by the administrator, who is the one to put it back404Domain '<domain>' not found404No rule turned off has that numberNo error of this operation matches.
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-security-modsec-disabled-rules-id/