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);
}