Cloudflare\Zone\WAF\Packages\Rules::update PHP Метод

update() публичный Метод

Update Rule group (permission needed: #zone:edit) Update the state of a rule group
public update ( string $zone_id, string $package_id, string $identifier, string | null $mode = null )
$zone_id string
$package_id string
$identifier string
$mode string | null The mode to use when the rule is triggered. Value is restricted based on the allowed_modes of the rule
    public function update($zone_id, $package_id, $identifier, $mode = null)
    {
        $data = ['mode' => $mode];
        return $this->patch('/zones/' . $zone_id . '/firewall/waf/packages/' . $package_id . '/rules/' . $identifier, $data);
    }