Enable/Disable Firewall rules via API

Hi,

I can’t find it so I ask by any chances, is there a way to enable/disable rules by API ?