Table of Contents

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

Name string

Updated widget name.

Domains IReadOnlyList<string>

Updated allowed domains.

Mode WidgetMode

Updated widget mode.

BotFightMode bool?

Updated bot fight mode setting.

ClearanceLevel ClearanceLevel?

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

ClearanceLevel?

Domains

Updated allowed domains.

[JsonPropertyName("domains")]
public IReadOnlyList<string> Domains { get; init; }

Property Value

IReadOnlyList<string>

Mode

Updated widget mode.

[JsonPropertyName("mode")]
public WidgetMode Mode { get; init; }

Property Value

WidgetMode

Name

Updated widget name.

[JsonPropertyName("name")]
public string Name { get; init; }

Property Value

string