partialUpdateMember

fun partialUpdateMember(channelType: String, channelId: String, set: Map<String, Any> = emptyMap(), unset: List<String> = emptyList()): Call<Member>

Updates specific fields of the current user's member data, retaining the custom data fields which were set previously.

Return

Executable async Call responsible for updating member data.

Parameters

channelType

The channel type. ie messaging.

channelId

The channel id. ie 123.

set

The key-value data to be updated in the member data.

unset

The list of keys to be removed from the member data.


fun partialUpdateMember(channelType: String, channelId: String, userId: String, set: Map<String, Any> = emptyMap(), unset: List<String> = emptyList()): Call<Member>

Deprecated

Only the current user's member data can be updated, so userId is ignored. Use the overload without userId.

Replace with

partialUpdateMember(channelType, channelId, set, unset)

Same as the overload without userId, which is ignored: only the current user's member data can be updated.