Bulk Activities
Remove Contacts from Lists
Use this method to create an activity that removes contacts from one or more contact lists. Use the properties in the source object to remove specific contacts from your lists. Use the list_ids array to specify the target lists from which contacts are removed. Optionally, if the source is all_active_contacts (billable) or list_ids, use the exclude object to exclude specific contacts from being removed from the destination lists.
post/activities/remove_list_memberships
Request body
Example request
{
"source": {
"list_ids": [
"5bbf758c-d8ce-11e9-8d3a-fa163e56c9b0"
],
"contact_ids": [
"4d88f172-21d1-11ea-b5ae-fa163e56c9b0"
],
"all_active_contacts": true,
"engagement_level": "high",
"tag_ids": [
"5e88f172-21d1-11ea-b5ae-fa163e56c9b9"
]
},
"exclude": {
"contact_ids": [
"4d88f172-21d1-11ea-b5ae-fa163e56c9b0"
]
},
"list_ids": [
"04fe9a97-a579-43c5-bb1a-58ed29bf0a6a"
]
}Response
Request successful. Activity queued for processing.
Example response
{
"activity_id": "86b90820-cc52-11ea-9dad-fa163e3d9194",
"state": "initialized",
"started_at": "2016-01-23T13:48:44.108Z",
"completed_at": "2016-01-23T13:48:44.108Z",
"created_at": "2016-01-23T13:48:44.108Z",
"updated_at": "2016-01-23T13:48:44.108Z",
"percent_done": 75,
"activity_errors": [
"Message describing the error condition."
],
"status": {
"items_total_count": 2200,
"items_completed_count": 652,
"list_count": 3
},
"_links": {
"self": {
"href": "/v3/activities/04fe9a97-a579-43c5-bb1a-58ed29bf0a6a"
}
}
}