Skip to navigation

Batch add or remove members

Batch add/remove list members to static segment

Authentication

AuthorizationBearer

Authorization using a Mailchimp API key (a.k.a. Bearer token)

OR
AuthorizationBearer
Authorization using OAuth

Path parameters

list_idstringRequired
The unique ID for the list.
segment_idstringRequired
The unique id for the segment.

Request

Members to add/remove to/from a static segment

members_to_addlist of stringsOptional
An array of emails to be used for a static segment. Any emails provided that are not present on the list will be ignored. A maximum of 500 members can be sent.
members_to_removelist of stringsOptional
An array of emails to be used for a static segment. Any emails provided that are not present on the list will be ignored. A maximum of 500 members can be sent.

Response

This endpoint returns an object.
error_countintegerOptional
The total number of items matching the query, irrespective of pagination.
errorslist of objectsOptional
An array of objects, each representing an array of email addresses that could not be added to the segment or removed and an error message providing more details.
members_addedlist of objectsOptional
An array of objects, each representing a new member that was added to the static segment.
members_removedlist of objectsOptional
An array of objects, each representing an existing list member that got deleted from the static segment.
total_addedintegerOptional
The total number of items matching the query, irrespective of pagination.
total_removedintegerOptional
The total number of items matching the query, irrespective of pagination.