Docs / API

Events

An event is one occasion, such as a conference (gathering in the schema). An event belongs to an app. The queries on this page select the app with appId. The Gathering type holds the data of an event.

Most other queries and mutations work on the data of one event. They need the id of the event in gatheringId. The gatherings query lists the events of an app, with their ids.

Queries and mutations

Field Use
gatherings Lists the events in one app that your API user can reach.
createGathering Creates an event in one app. Returns the new event.
updateGathering Changes an event in one app. Returns the changed event.

These fields work on an app, not on an event. They take appId in place of gatheringId. The query takes appId as an ID!. The mutations take appId and id as an Int!.

A restricted API user cannot use gatherings or createGathering. See Getting started.

List the events of an app

gatherings takes appId and filters. filters is a GatheringFilters value. Scalars lists the four filter fields.

query ListEvents($appId: ID!) {
  gatherings(appId: $appId) {
    id
    name
    startsOn
    endsOn
    timeZone
    hidden
    appId
    externalId
  }
}
{
  "data": {
    "gatherings": [
      {
        "id": "123",
        "name": "Annual Conference 2026",
        "startsOn": "2026-06-15T00:00:00Z",
        "endsOn": "2026-06-17T00:00:00Z",
        "timeZone": "UTC",
        "hidden": false,
        "appId": "45",
        "externalId": "CONF-2026"
      }
    ]
  }
}

The startsOn field is the start of the first day of the event. The endsOn field is the start of the last day of the event. Each value is midnight in the time zone of the event, written as a UTC Datetime. For an event east of UTC, the date part of the value is one day before the local date.

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"
    }
  }
}

Change an event

updateGathering takes appId, the id of the event, and a GatheringParams value in gathering. The event must belong to the app in appId.

GatheringParams is the same type that createGathering uses. Send name, startsOn, endsOn, and timeZone in each update.

mutation UpdateEvent($appId: Int!, $id: Int!) {
  updateGathering(
    appId: $appId
    id: $id
    gathering: {
      name: "Annual Conference 2026"
      startsOn: "2026-06-15"
      endsOn: "2026-06-18"
      timeZone: "UTC"
      hidden: false
    }
  ) {
    id
    name
    timeZone
    externalId
  }
}
{
  "data": {
    "updateGathering": {
      "id": "123",
      "name": "Annual Conference 2026",
      "timeZone": "UTC",
      "externalId": "CONF-2026"
    }
  }
}