What API in mailchimp should I use to set a merge var value for a specific list member?
If I'm adding a new list member, I can use lists/subscribe to set a merge var value for that new member. However, I do not see an API to change the value if the list member already exists.
The API lists/merge-var-set sets the value for all list members. And lists/merge-var-update sets attributes for the merge var.
What is the API for setting a specific value?
In APIv2, you still use lists/subscribe
, but you pass update_existing
as well. This is considerably more intuitive in APIv3, which you should use if you can, since 2.0 is officially deprecated.