Cloudflare\Zone\Firewall\AccessRules::update PHP Метод

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

Note: you can only edit rules in the 'zone' group via this endpoint. Use the appropriate owner rules endpoint if trying to manage owner-level rules
public update ( string $zone_id, string $identifier, string | null $mode = null, string | null $notes = null )
$zone_id string
$identifier string
$mode string | null The action to apply to a matched request
$notes string | null A personal note about the rule. Typically used as a reminder or explanation for the rule.
    public function update($zone_id, $identifier, $mode = null, $notes = null)
    {
        $data = ['mode' => $mode, 'notes' => $notes];
        return $this->patch('/zones/' . $zone_id . '/firewall/access_rules/rules/' . $identifier, $data);
    }