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": "e022427ba8a121948ca5663c",
"userRefs": [
"cb93f5921d149b9f76fe102c"
]
}

Response

{
"listRemoveUsers": {
"_id": "d77b3ec075423fa82483764e",
"id": 5504433078672,
"title": "example",
"description": "example",
"created": 1742625706306,
"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