Create an attendee
createAttendee takes gatheringId and an AttendeeCreateParams value in attendee. Send attendee in each request. The fields firstName and lastName are required.
mutation CreateAttendee($gatheringId: Int!) {
createAttendee(
gatheringId: $gatheringId
attendee: {
firstName: "Riley"
lastName: "Nguyen"
email: "riley@example.com"
loginEmail: "riley@example.com"
organization: "Example Corp"
jobTitle: "Product manager"
externalId: "CRM-4471"
participantTypes: ["Attendee"]
assignedAgendaSessionIds: ["501"]
}
) {
id
firstName
lastName
email
externalId
participantTypes {
name
}
}
}
{
"data": {
"createAttendee": {
"id": "103",
"firstName": "Riley",
"lastName": "Nguyen",
"email": "riley@example.com",
"externalId": "CRM-4471",
"participantTypes": [{ "name": "Attendee" }]
}
}
}
A create does not always make a new attendee. If the event has an attendee with the same firstName and lastName, Touchpoint changes that attendee. The exception is two attendees that both have an externalId and the two values are different. Then Touchpoint makes a new attendee.
To set a photo, send photoUrl with the address of a .jpg or .png file. You can also send photo. See Scalars.
This article is a copy of Attendees in the Touchpoint API documentation.
Comments
0 comments
Please sign in to leave a comment.