enrichProfile

fun enrichProfile(attributes: Map<String, Any?>)

Update arbitrary attributes on the user's customer profile.

Parameters

attributes

caller-provided profile attributes (name, email, phone, custom fields, ...). Spread flat onto the wire body.


fun enrichProfile(attributes: JsonObject)

Update arbitrary attributes on the user's customer profile using a pre-built JsonObject. Skips the Map<String, Any?>JsonObject conversion.