UpdateMetadataParams

@Serializable
data class UpdateMetadataParams(val unsafeMetadata: String? = null)

Parameters for User.updateMetadata.

Only unsafeMetadata is end-user-writable on the Frontend API. The submitted value is deep-merged into the existing unsafeMetadata on the server: keys present in the patch overwrite existing keys, and any key whose value is null is removed at any nesting level. Omit the field entirely (leave it null) to make no change.

Constructors

Link copied to clipboard
constructor(unsafeMetadata: String? = null)

Properties

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

JSON string containing the unsafe metadata patch to merge into the current unsafeMetadata. Use null keys to remove existing entries.