Table of Contents

Class UpdateAccountMemberRequest

Namespace
Cloudflare.NET.Members.Models
Assembly
Cloudflare.NET.dll

Request to update an existing account member.

Only the roles and policies can be updated. The user's email and status cannot be changed through this endpoint.

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

Constructors

UpdateAccountMemberRequest(IReadOnlyList<string>, IReadOnlyList<CreateMemberPolicyRequest>?)

Request to update an existing account member.

Only the roles and policies can be updated. The user's email and status cannot be changed through this endpoint.

public UpdateAccountMemberRequest(IReadOnlyList<string> Roles, IReadOnlyList<CreateMemberPolicyRequest>? Policies = null)

Parameters

Roles IReadOnlyList<string>

Updated role IDs for the member.

Policies IReadOnlyList<CreateMemberPolicyRequest>

Updated policies for fine-grained access control.

Properties

Policies

Updated policies for fine-grained access control.

[JsonPropertyName("policies")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public IReadOnlyList<CreateMemberPolicyRequest>? Policies { get; init; }

Property Value

IReadOnlyList<CreateMemberPolicyRequest>

Roles

Updated role IDs for the member.

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

Property Value

IReadOnlyList<string>