Bulk Activities
Add Contacts to Lists
Use this method to create an activity that adds contacts to one or more lists. Each contact can be a member of up to 50 lists. Use the properties in the source object to specify the contacts you want to add to lists. Use the list_ids array to specify which lists you want to add your source contacts to.
post/activities/add_list_memberships
Request body
Example request
{
"source": {
"list_ids": [
"04fe9a97-a579-43c5-bb1a-58ed29bf0a6a"
],
"all_active_contacts": true,
"contact_ids": [
"04fe9a97-a579-43c5-bb1a-58ed29bf0a6a"
],
"tag_ids": [
"5e88f172-21d1-11ea-b5ae-fa163e56c9b9"
],
"engagement_level": "high",
"segment_id": 12
},
"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"
}
}
}