List Tags are ideal for managing collections of preferences, such as newsletter subscriptions. Instead of overwriting the entire list when a change is made, you can append new items or remove existing ones.
1. Reading the Current List
To see the current values stored in a user's List Tag, use the /getTags API method. This allows you to check the existing list before making changes.
2. Adding a Value to the List
To add a new item to an existing List Tag, use the /setTags method with the append operation. This will add the new value without affecting the other items already in the list.
API Documentation: Append List Tag Values
3. Removing a Value from the List
To remove a specific item from a List Tag, use the /setTags method with the remove operation. This will delete only the specified value from the list, leaving the others intact.
API Documentation: Remove List Tag Values
Comments
0 comments
Please sign in to leave a comment.