Skip to main content

listRemoveUsers Mutation

Description

Removes buyers from a customer list. Buyers who have opted out are not removed. The list member count is automatically updated after removing buyers.

mutation listRemoveUsers($listRef: ID!, $userRefs: [ID!]!) {
listRemoveUsers(listRef: $listRef, userRefs: $userRefs) {
_id
id
title
description
created
count
system
}
}

Variables

{
"listRef": "8c930c20fd90502c4e2a466b",
"userRefs": [
"ccfb362b56fc049f28f58be7"
]
}

Response

{
"listRemoveUsers": {
"_id": "f5d2f362ae6c39ebbf4a4251",
"id": 3451714636398,
"title": "example",
"description": "example",
"created": 1720570783302,
"count": 10,
"system": true
}
}

Arguments

NameTypeDescription
listRefID!Reference ID of the customer list to remove buyers from.
userRefs[ID!]!List of buyer reference IDs to remove from the customer list.

Returns

List