Arguments
- gatheringId: (Int!)
- exhibitor: (ExhibitorParams) [see below for params]
GraphQL Mutation
mutation {
createExhibitor(exhibitor: {
name: "OmniCorp",
email: "noone@omnicorp.io",
website: "http://www.omnicorp.io",
location: { name: "Booth 42" },
description: "Taking over the world, one step at a time."
}, gatheringId: 232) {
id
name
}
}
CURL Request
curl -X POST https://api.certaintouchpoint.com/graphql \
-H 'Content-Type: application/graphql' \
-H 'Authorization: Bearer 123abcveryLongAuthorizationToken456def' \
-d '{ mutation { createExhibitor(exhibitor: { name: "OmniCorp", email: "noone@omnicorp.io", website: "http://www.omnicorp.io", location: { name: "Booth 42"}, description: "Taking over the world, one step at a time."}, gatheringId: 232) { id name } }'
GraphQL Response
{
"data": {
"createExhibitor": {
"name": "OmniCorp",
"id": "71111",
}
}
}
ExhibitorParams
ExhibitorParams is the input object used to specify exhibitor details during the createExhibitor mutation.
The fields included in ExhibitorParams:
- name (String!) is the display name of exhibitor.
- The name field is required.
- email (String) Contact email for exhibitor.
- description (String) Description for exhibitor. HTML supported.
- website (String) Website URL for exhibitor.
- location (LocationParams) Location name.
- LocationParams is structured as { name: "Booth 42" }.