With the MailChimp API, to add a member to a list with a specific interest group, you need both that list\'s ID and the interest group\'s ID.
To get both those IDs, you
I am using V3 API and you can use Playground to get group id (Mûhámmàd Yäsår K
group name doesn't work for me)
Playground > List > [Your list] > interest-categories > interests > [Your group]-> You'll see payload with field id
Now that you have the group id, you can play with creating members: Playground > List > [Your list] > members > Click Create members
Here's the sample payload:
{
"email_address": "user@mail.com",
"status": "subscribed",
"merge_fields": {
"EMAIL": "user@mail.com",
"FNAME": "Firstname",
"LNAME": "Lastname",
"POST_CODE": "",
"ADDRESS": "",
"PHONE": ""
},
"interests": {
"733ba3180d": true
}
}
Note: interests
is not inside merge_fields
Hope this help.