Table of Contents

Class UpdateAccountRequest

Namespace
Cloudflare.NET.Accounts.Models
Assembly
Cloudflare.NET.dll

Request to update an existing Cloudflare account.

Both the name and settings can be updated in a single request.

public record UpdateAccountRequest : IEquatable<UpdateAccountRequest>
Inheritance
UpdateAccountRequest
Implements
Inherited Members

Constructors

UpdateAccountRequest(string, AccountSettings?)

Request to update an existing Cloudflare account.

Both the name and settings can be updated in a single request.

public UpdateAccountRequest(string Name, AccountSettings? Settings = null)

Parameters

Name string

The new name for the account.

Settings AccountSettings

Updated account settings. If null, settings are not modified. To update settings, provide an AccountSettings object.

Properties

Name

The new name for the account.

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

Property Value

string

Settings

Updated account settings. If null, settings are not modified. To update settings, provide an AccountSettings object.

[JsonPropertyName("settings")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public AccountSettings? Settings { get; init; }

Property Value

AccountSettings