Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Development Tools MailChimp API MailChimp API Adding New Members to Your List

Mike Bronner
Mike Bronner
16,395 Points

How to add members to segments?

I am working on converting my existing MailChimp API v2 implementation to use MailChimp API 3. Unfortunately I am encountering instances where the documentation does seem to exist yet in the knowledge base and also wasn't covered in the short Treehouse course.

One such instance is adding members to segments. Can anyone point me in the right direction here? :)

Thanks!

Mike Bronner
Mike Bronner
16,395 Points

I imagine its something along the lines of:

POST: /lists/{listId}/segments/{segmentId}/members

But I'm unclear on what the body should look like.

1 Answer

Hey Mike --

Since this doesn't directly pertain to the Treehouse videos, do you mind reaching out to our support team at apihelp@mailchimp.com. Our support team will be on the lookout for a ticket with "Treehouse" included in the subject line. They'll be able to take a look at what you're sending in detail. Thanks!

Mike Bronner
Mike Bronner
16,395 Points

Awesome, thanks Nate! Email sent :) Liking the new RESTful API much better.