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

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

Update Rule group (permission needed: #zone:edit) Update the state of a rule group
public update ( string $zone_identifier, string $package_identifier, string $identifier, string | null $mode = null )
$zone_identifier string
$package_identifier string
$identifier string
$mode string | null Whether or not the rules contained within this group are configurable/usable
    public function update($zone_identifier, $package_identifier, $identifier, $mode = null)
    {
        $data = ['mode' => $mode];
        return $this->patch('/zones/' . $zone_identifier . '/firewall/waf/packages/' . $package_identifier . '/groups/' . $identifier, $data);
    }