Create an event
createGathering takes appId and a GatheringParams value in gathering. These fields are required.
| Field | Type | Content |
|---|---|---|
name |
String! |
The display name of the event. |
startsOn |
Date! |
The first day of the event. |
endsOn |
Date! |
The last day of the event. |
timeZone |
String! |
An IANA time zone name, for example America/New_York. |
The optional fields are hidden, externalId, and homeGathering. Send homeGathering as true to mark the event as the home event of the app.
The externalId value must be unique in your organization. If another event in your organization has the same externalId, the mutation fails and returns an error. This rule also applies to updateGathering.
A Date value has the format YYYY-MM-DD. See Scalars.
mutation CreateEvent($appId: Int!) {
createGathering(
appId: $appId
gathering: {
name: "Annual Conference 2026"
startsOn: "2026-06-15"
endsOn: "2026-06-17"
timeZone: "UTC"
externalId: "CONF-2026"
}
) {
id
name
timeZone
externalId
}
}
{
"data": {
"createGathering": {
"id": "123",
"name": "Annual Conference 2026",
"timeZone": "UTC",
"externalId": "CONF-2026"
}
}
}
This article is a copy of Events in the Touchpoint API documentation.
Comments
0 comments
Please sign in to leave a comment.