Remove contacts from a list
Take contacts off a list; they stay in your account.
DELETE https://cotlet.dev/api/v1/constant-contact/lists/{list_id}/contacts-from-lists
write
Removes the contacts from this one list, as Actions > Remove from list does in Contacts. They are not deleted and stay on every other list. It reaches no one and add_contacts_to_list undoes it in one call, so it does not wait for your OK.
Parameters
| Name | Type | Description |
|---|---|---|
| list_id string required | string | List ID from list_lists or create_list. |
| contact_ids array required | array | Contact IDs to take off the list. |
Request
curl -X DELETE "https://cotlet.dev/api/v1/constant-contact/lists/list_8c41d2/contacts-from-lists?contact_ids=contact+ids" \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("constant-contact", "remove_contacts_from_list", {"list_id":"list_8c41d2","contact_ids":"contact ids"}) const result = await cotlet.call('constant-contact', 'remove_contacts_from_list', {"list_id":"list_8c41d2","contact_ids":"contact ids"}); cotlet call constant-contact remove_contacts_from_list --data '{"list_id":"list_8c41d2","contact_ids":"contact ids"}' Example response
{
"list_id": "5a8d3f21-6b9c-4e07-8d14-2f7c9e0a1b36",
"removed": 2
}