Add to List
Adds a contact to a static list. Dynamic lists derive their members from a filter, so adding to one has no lasting effect. Change the list's filter instead.
Authorization
Authorization In: header
Path Parameters
ID of the project that owns the list.
ID of the contact list to add the contact to.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/projects/string/crm/contact-lists/string/members" \ -H "Content-Type: application/json" \ -d '{ "contactDistinctId": "string" }'{ "id": "string", "createdAt": "string", "updatedAt": "string", "projectId": "string", "contactListId": "string", "contactDistinctId": "string"}Query List Members
The same result as List Members, but as a POST so it can carry a filter group in the body, for narrowing a list to a sub-segment, or naming exactly which contact properties to return. Use this when the query is too rich for a query string.
Remove from List
Removes a contact from a static list, identified by the contact's distinct ID. The contact itself is not deleted. Returns `null` if they were not in the list. Has no lasting effect on a dynamic list, whose membership comes from its filter.