Enable custom rules via api

we are getting a lot of ddos attack recently and always attack start when i’m sleep or away of laptop , so I’m trying to make script to auto enable/disable the custom rules i made via api, any idea how to achive that or a link for the right api that enable/disable custom rule

Hello @urekxmazino

Check this API call to update custom rules:

You can set "enabled" : true/false to enable or disable the rule.