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": "19c5cf647af43d196c313032",
"userRefs": [
"363e17db48aa1fc7f3a1eca9"
]
}

Response

{
"listRemoveUsers": {
"_id": "8f3b0dbdb17b2c2e81c83fbb",
"id": 8936612506473,
"title": "example",
"description": "example",
"created": 1747914504520,
"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