Class MeUpdateProfileRequest

Assembly: redb.Identity.Contracts.dll

Self-service profile update request for PUT /me. Caller identity is derived
from the authenticated access-token subject; Id is NOT accepted in the body.
Admin-only fields (Status, EmailVerified, PhoneNumberVerified)
are intentionally absent — a user cannot grant themselves verified flags or toggle
their own account status. Changes to those fields require the admin
PUT /users/{id} endpoint via identity:manage scope.

public class MeUpdateProfileRequest

Inheritance

Object→MeUpdateProfileRequest

Properties

Address

OIDC structured address (§5.1.1). Null = no change, empty object = clear.

public AddressDto? Address { get; set; }

Birthdate

ISO 8601 YYYY-MM-DD (a bare year is allowed).

public string? Birthdate { get; set; }

CustomClaims

Arbitrary custom claims. Null = no change. Keys merged (overwrite).

public Dictionary<string, string>? CustomClaims { get; set; }

DisplayName

public string? DisplayName { get; set; }

Email

public string? Email { get; set; }

FamilyName

public string? FamilyName { get; set; }

Gender

public string? Gender { get; set; }

GivenName

public string? GivenName { get; set; }

Locale

BCP 47 language tag, e.g. "ru-RU".

public string? Locale { get; set; }

MiddleName

public string? MiddleName { get; set; }

Nickname

public string? Nickname { get; set; }

PhoneNumber

public string? PhoneNumber { get; set; }

Picture

public string? Picture { get; set; }

PreferredUsername

Shorthand name for the RP's UI. Falls back to the login when unset.

public string? PreferredUsername { get; set; }

Profile

URL of the user's profile page (OIDC: profile).

public string? Profile { get; set; }

Website

public string? Website { get; set; }

ZoneInfo

IANA time-zone name, e.g. "Europe/Moscow".

public string? ZoneInfo { get; set; }