When creating or updating attendees through API v2, include answers to custom registration questions in the same request. This is useful when syncing from an external form, CRM or registration system.
Include question answers
Send a questions array with a numeric question_id from the same event and an answer for each item. The answer may be an empty string, but the answer key must be present.
{
"email": "[email protected]",
"name": "Sam Attendee",
"questions": [
{
"question_id": 12345,
"answer": "Enterprise customer"
}
]
}
Send this with POST /api/v2/events/EVENT_ID/attendees/ to create an attendee, or include the questions array in PATCH /api/v2/events/EVENT_ID/attendees/ATTENDEE_ID/ to update an attendee. Replace the example IDs with your own. Existing answers for those questions are updated; new answers are created. Questions omitted from the request keep their existing answers.
Find the question ID
Manage the questions under Registration & Attendees > Registration Fields. If an attendee has already answered a question, read that attendee through the API and inspect its questions array. Each answer contains question_id, question and answer, so you can match the ID to the question title. If you have no existing response to inspect, ask HeySummit support for the field ID rather than guessing it.
Before creating attendees
Obtain the attendee’s agreement to the event terms before registering them through the API. API registration activates the attendee immediately and does not verify ownership of their email address. Your account and API connection must have access to the event and permission to change attendee data. For authentication, schemas and examples, use the current API v2 documentation.
