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": "8d923544b676de541c5a336b",
"userRefs": [
"0dbfedbec45bb2af4156bee2"
]
}

Response

{
"listRemoveUsers": {
"_id": "4c2f638a4ef6547a12bb93ac",
"id": 1015524226685,
"title": "example",
"description": "example",
"created": 1743551437245,
"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