phpmailchimpmailchimp-api-v3.0

How to add "Tags" to mailchimp subscriber via the api


Looking to add tags to my mailing list members via the api. But I don't see where to pass in tags in the documentation. Can someone point to an example of how to update the tags associated with a member via the api?


Solution

  • Tags replaced static segments. So, the endpoints used to create tags and add and remove tags from members are the same endpoints that were previously used to manage segments. Here is the documentation on the endpoints to use to manage your tags via the API that includes the request and response body parameters as well as example requests and responses:

    http://developer.mailchimp.com/documentation/mailchimp/reference/lists/segments/

    In order to add tags to your members, you need to include their email addresses in the 'static_segment' array parameter.

    I hope that helps.