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": "ffe357fd2c608e8a1cf6d69c",
"userRefs": [
"00c26b2d61b6a5692cecf070"
]
}

Response

{
"listRemoveUsers": {
"_id": "b682c7792573ec65b6ff1c6c",
"id": 7551575172583,
"title": "example",
"description": "example",
"created": 1737795515432,
"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