addAttributeWithKey

open fun addAttributeWithKey(@NotNull key: @NotNull String, @NotNull value: @NotNull String): Boolean

Adds a user attribute represented as a key/value pair.

There is a limit of 30 attributes per user.

Return

true if the attribute was added; false if the limit of 30 attributes per user was already reached.

Parameters

key

Identifies the attribute. Maximum size is 100 characters.

value

Represents the value of the attribute. Maximum size is 255 characters.