API to enable firewall rule


I am looking for a way to activate by .sh script a CF firewall rule.

Currently my script allows to activate the “under attack mode”

But I can’t find a way to add to this code the way to also activate rules.

I believe you need to use the update firewall rule API call and changed paused to false.