Many queries and mutations use the same object types. This page says what each shared type holds and where you use it. The reference page of each type lists all of its fields.
Session
The login mutation returns a Session. It has one field, token. The token is valid for one day.
Location
A Location has a name. It is the place of an agenda session, a meeting, or an exhibitor.
To set a place, send LocationParams with a name. Agenda sessions, meetings, and exhibitors accept it.
Terms and groups
A group holds terms. A term belongs to one group. The two types are Group and Term.
- A
Termhas anid, aname, and agroup. - A
Grouphas anid, aname, and thegatheringIdof the event (gatheringin the schema, selected withgatheringId).
An agenda session has a terms field. To set the terms of a session, send a list of TermParams. Each item has a name and a group. The group is a GroupParams with a name.
Only agenda sessions accept terms in input. An exhibitor has a terms field that you can read but not set.
Participant types
A ParticipantType has a name. Agenda sessions and exhibitors list the participant types that can see them. Attendees list the participant types that Touchpoint applied to them. All three have a participantTypes field.
To set the participant types of an attendee, send the names in participantTypes. This field takes a list of strings.
Features and sponsor levels
An exhibitor belongs to one feature and one sponsor level.
- A
Featurehas anidand alabel. To pick the feature of an exhibitor, sendFeatureParamswith thelabelof an exhibitor feature that exists. - A
SponsorLevelhas anidand aname. To set the level, sendSponsorLevelParamswith aname. If the level does not exist, Touchpoint creates it.
Custom fields
An attendee and a lead have a fieldValues field. It lists the values of the custom fields.
- A
FieldValuehas anid, avalue, and afieldDefinition. Thevalueis a string. For a field that allows more than one choice, the string joins the choices with the|character. - A
FieldDefinitionhas anid, alabel, afieldType, andoptions. ThefieldTypeisinput,rating, orchoice. Theoptionsfield has the typeJson.
Education credits
An agenda session has an educationCredits field. Each EducationCredit has an id, an amount, and a type. The type is the label of the credit type.
To set the credits of a session, send a list of EducationCreditParams. Each item needs a type and an amount. Touchpoint finds the credit type by its label. If the type does not exist, Touchpoint creates it.
Surveys
A survey response uses three types.
- A
Surveyhas anidand aname. - A
SurveyQuestionhas anid, aname, and aquestionType. ThequestionTypeisrating,yes-no,choice, orcomment. For achoicequestion,questionDatalists the choices, separated by the|character.correctAnswerholds the correct choice, if the question has one. - A
SurveyAnswerhas anid, ananswer, asurveyQuestionId, and thequestion.
To link a meeting to a survey that exists, send SurveyParams with the externalId of the survey.
Meeting participants
A MeetingParticipant is one person or company in a meeting. It has these fields.
| Field | Description |
|---|---|
participantId |
The id of the attendee or exhibitor. |
participantKind |
The kind of participant. In a response the value can be attendee, exhibitor, or speaker. |
roleLabel |
A label for the role, such as moderator. |
customMeetingName |
A meeting name for this participant only. It replaces the name of the meeting. |
neutralParty |
true for a neutral participant in a competitive meeting. |
In a mutation, participantKind must be attendee or exhibitor. Any other value returns an error.
Paging
The attendeesConnection query returns a PageInfo. See Pagination.
This article is a copy of Types in the Touchpoint API documentation.
Comments
0 comments
Please sign in to leave a comment.