Create an exhibitor
createExhibitor takes gatheringId and an ExhibitorCreateParams value in exhibitor. The field name is required.
mutation CreateExhibitor($gatheringId: Int!) {
createExhibitor(
gatheringId: $gatheringId
exhibitor: {
name: "Acme Robotics"
description: "<p>Robots for every task.</p>"
website: "https://example.com"
email: "info@example.com"
location: { name: "Booth 12" }
sponsorLevel: { name: "Gold" }
feature: { label: "Exhibitors" }
}
) {
id
name
location {
name
}
sponsorLevel {
name
}
feature {
label
}
}
}
{
"data": {
"createExhibitor": {
"id": "701",
"name": "Acme Robotics",
"location": { "name": "Booth 12" },
"sponsorLevel": { "name": "Gold" },
"feature": { "label": "Exhibitors" }
}
}
}
These rules apply to the input fields.
-
featuretakes aFeatureParamsvalue. Thelabelis the label of an exhibitors feature of the event. If you do not sendfeature, Touchpoint puts the exhibitor in the first exhibitors feature of the event. If the event has no exhibitors feature, Touchpoint creates one. -
sponsorLeveltakes aSponsorLevelParamsvalue. If the level does not exist, Touchpoint creates it. -
locationtakes aLocationParamsvalue with aname. If the event has no location with this name, Touchpoint creates it.
A create does not always make a new exhibitor. If the event has an exhibitor with the same name, Touchpoint changes that exhibitor.
This article is a copy of Exhibitors in the Touchpoint API documentation.
Comments
0 comments
Please sign in to leave a comment.