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

Parameters: remove_contacts_from_list
NameTypeDescription
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
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"
Python
result = client.call("constant-contact", "remove_contacts_from_list", {"list_id":"list_8c41d2","contact_ids":"contact ids"})
Node.js
const result = await cotlet.call('constant-contact', 'remove_contacts_from_list', {"list_id":"list_8c41d2","contact_ids":"contact ids"});
CLI
cotlet call constant-contact remove_contacts_from_list --data '{"list_id":"list_8c41d2","contact_ids":"contact ids"}'

Example response

JSON

{
  "list_id": "5a8d3f21-6b9c-4e07-8d14-2f7c9e0a1b36",
  "removed": 2
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.