UpdateParams

@Serializable
data class UpdateParams(val firstName: String? = null, val lastName: String? = null, val username: String? = null, val primaryEmailAddressId: String? = null, val primaryPhoneNumberId: String? = null, val profileImageId: String? = null, val publicMetadata: String? = null, val privateMetadata: String? = null, val unsafeMetadata: String? = null)

Parameters for updating a user's profile information.

All fields are optional - only provide the fields you want to update. Null values will be ignored and the existing values will be preserved.

Constructors

Link copied to clipboard
constructor(firstName: String? = null, lastName: String? = null, username: String? = null, primaryEmailAddressId: String? = null, primaryPhoneNumberId: String? = null, profileImageId: String? = null, publicMetadata: String? = null, privateMetadata: String? = null, unsafeMetadata: String? = null)

Properties

Link copied to clipboard
@SerialName(value = "first_name")
val firstName: String?

The user's first name.

Link copied to clipboard
@SerialName(value = "last_name")
val lastName: String?

The user's last name.

Link copied to clipboard
@SerialName(value = "primary_email_address_id")
val primaryEmailAddressId: String?

The ID for the EmailAddress to be set as primary.

Link copied to clipboard
@SerialName(value = "primary_phone_number_id")
val primaryPhoneNumberId: String?

The ID for the PhoneNumber to be set as primary.

Link copied to clipboard
@SerialName(value = "private_metadata")
val privateMetadata: String?

Private metadata. Never settable from the Frontend API — modifications must be made via the Backend API.

Link copied to clipboard
@SerialName(value = "profile_image_id")
val profileImageId: String?

The ID for the image to be set as profile image.

Link copied to clipboard
@SerialName(value = "public_metadata")
val publicMetadata: String?

Public metadata. Never settable from the Frontend API — modifications must be made via the Backend API.

Link copied to clipboard
@SerialName(value = "unsafe_metadata")
val unsafeMetadata: String?

JSON string containing unsafe metadata to update. Passing this here is deprecated: the SDK now routes it through updateMetadata under the hood. Migrate calls to User.updateMetadata for clearer intent and direct access to deep-merge semantics.

Link copied to clipboard

The user's username.