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": "ba6f563f1f784030f596838b",
"userRefs": [
"b36841ebfda5289a7e02fb4f"
]
}

Response​

{
"listRemoveUsers": {
"_id": "555782a91b5f3dc178257ea2",
"id": 3155547225834,
"title": "example",
"description": "example",
"created": 1766719755501,
"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