Change an attendee
updateAttendee takes gatheringId, the id of the attendee, and an AttendeeUpdateParams value in attendee.
Send lastName in each update. Touchpoint rejects an update that does not have it.
mutation UpdateAttendee($gatheringId: Int!, $id: Int!) {
updateAttendee(
gatheringId: $gatheringId
id: $id
attendee: {
lastName: "Nguyen"
jobTitle: "Director of product"
assignedAgendaSessionIds: ["501", "502"]
}
) {
id
lastName
jobTitle
assignedAgendaSessions {
id
name
}
}
}
{
"data": {
"updateAttendee": {
"id": "103",
"lastName": "Nguyen",
"jobTitle": "Director of product",
"assignedAgendaSessions": [
{ "id": "501", "name": "Opening keynote" },
{ "id": "502", "name": "Product roadmap" }
]
}
}
}
An update changes only the fields that you send. These rules apply to some fields.
-
assignedAgendaSessionIdsreplaces the old list of assigned sessions. Private sessions of the attendee that have no external source stay in the list. - A list in
participantTypesreplaces the old list of participant types. An empty list changes nothing. - An empty
badgeCodechanges nothing. You cannot clear a badge code.
This article is a copy of Attendees in the Touchpoint API documentation.
Comments
0 comments
Please sign in to leave a comment.