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": "049115e0c053e2ab59ea609f",
"userRefs": [
"a437326bcfb685a673c8b307"
]
}

Response​

{
"listRemoveUsers": {
"_id": "d13247460681cc842d555ac3",
"id": 4293977748640,
"title": "example",
"description": "example",
"created": 1748711656289,
"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