Class UpdateTurnstileWidgetRequest
- Namespace
- Cloudflare.NET.Turnstile.Models
- Assembly
- Cloudflare.NET.dll
Request to update an existing Turnstile widget.
Updates replace the widget configuration. All required fields must be provided.
public record UpdateTurnstileWidgetRequest : IEquatable<UpdateTurnstileWidgetRequest>
- Inheritance
-
UpdateTurnstileWidgetRequest
- Implements
- Inherited Members
Constructors
UpdateTurnstileWidgetRequest(string, IReadOnlyList<string>, WidgetMode, bool?, ClearanceLevel?)
Request to update an existing Turnstile widget.
Updates replace the widget configuration. All required fields must be provided.
public UpdateTurnstileWidgetRequest(string Name, IReadOnlyList<string> Domains, WidgetMode Mode, bool? BotFightMode = null, ClearanceLevel? ClearanceLevel = null)
Parameters
NamestringUpdated widget name.
DomainsIReadOnlyList<string>Updated allowed domains.
ModeWidgetModeUpdated widget mode.
BotFightModebool?Updated bot fight mode setting.
ClearanceLevelClearanceLevel?Updated clearance level.
Properties
BotFightMode
Updated bot fight mode setting.
[JsonPropertyName("bot_fight_mode")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public bool? BotFightMode { get; init; }
Property Value
- bool?
ClearanceLevel
Updated clearance level.
[JsonPropertyName("clearance_level")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public ClearanceLevel? ClearanceLevel { get; init; }
Property Value
Domains
Updated allowed domains.
[JsonPropertyName("domains")]
public IReadOnlyList<string> Domains { get; init; }
Property Value
Mode
Updated widget mode.
[JsonPropertyName("mode")]
public WidgetMode Mode { get; init; }
Property Value
Name
Updated widget name.
[JsonPropertyName("name")]
public string Name { get; init; }