Skip to main content

listAddUsers Mutation

Description​

Adds buyers to an existing customer list. Buyers are added to the list if they are not already members. The list member count is automatically updated after adding buyers.

mutation listAddUsers($listRef: ID!, $userRefs: [ID!]!) {
listAddUsers(listRef: $listRef, userRefs: $userRefs) {
_id
id
title
description
created
count
system
}
}

Variables​

{
"listRef": "148bd37b8e0b9f0da8e0bf7f",
"userRefs": [
"3ac0d6136c89dc91939679d4"
]
}

Response​

{
"listAddUsers": {
"_id": "96268648397f6a4867b3fce8",
"id": 8920776253873,
"title": "example",
"description": "example",
"created": 1789568086825,
"count": 10,
"system": true
}
}

Arguments​

NameTypeDescription
listRefID!Reference ID of the customer list to add buyers to.
userRefs[ID!]!List of buyer reference IDs to add to the customer list.

Returns​

List