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": "b386f095d80f55ff18d5bf40",
"userRefs": [
"e13405e21a6f15edaa18341d"
]
}

Response

{
"listAddUsers": {
"_id": "1f78d9d30304fc949fd4ae69",
"id": 1462280545097,
"title": "example",
"description": "example",
"created": 1722070763345,
"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