Attribute key. Cannot be null, empty or undefined. It should be made of letters, numbers or underscores ([a-z0-9_]) and can't be longer than 30 characters.
The value to add. Cannot be null, undefined or empty. Must be an array of string or a string no longer than 64 characters.
Add topics to the profile topic preferences.
Topics to add. Must be a valid string array not longer than 25 items or a single string. String should be made of letters, numbers or underscores ([a-z0-9_]) and can't be longer than 300 characters.
Remove a value from an array attribute.
Attribute key. Cannot be null, empty or undefined. It should be made of letters, numbers or underscores ([a-z0-9_]) and can't be longer than 30 characters.
The value to remove. Can be a String or an Array of String. Cannot be null, empty or undefined.
Remove topics from the profile topic preferences.
Topics to remove. Must be a valid string array not longer than 25 items or a single string. String should be made of letters, numbers or underscores ([a-z0-9_]) and can't be longer than 300 characters.
Set an attribute for a key
Attribute key. Cannot be null, empty or undefined. It should be made of letters, numbers or underscores ([a-z0-9_]) and can't be longer than 30 characters.
Attribute value. Accepted types are numbers, booleans, Date objects and strings. Strings must not be empty or longer than 64 characters.
Set the profile phone number.
This requires to have a custom profile ID registered or to call the identify method beforehand.
A valid E.164 formatted string. Must start with a + and not be longer than 15 digits
without special characters (eg: "+33123456789"). Null to reset.
Set the profile SMS marketing subscription state.
Note that profile's subscription status is automatically set to unsubscribed when users send a STOP message.
The state of the SMS marketing subscription. Must be "subscribed" or "unsubscribed".
Set the profile topic preferences.
Array of topics to set. Null to reset. Must be a valid string array not longer than 25 items. String should be made of letters, numbers or underscores ([a-z0-9_]) and can't be longer than 300 characters.
Add value to an array attribute. If the array doesn't exist it will be created.