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
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://www.saasco.com/api/v2/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"
}{
"code": "BAD_REQUEST",
"message": "Invalid input data",
"issues": []
}{
"code": "UNAUTHORIZED",
"message": "Authorization not provided",
"issues": []
}{
"code": "FORBIDDEN",
"message": "Insufficient access",
"issues": []
}{
"code": "INTERNAL_SERVER_ERROR",
"message": "Internal server error",
"issues": []
}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.