createAgendaSession

This article documents how to create an agenda session in Touchpoint using a GraphQL mutation, including required arguments, example requests, and parameter definitions.

Arguments

GraphQL Mutation

mutation {
  createAgendaSession(agendaSession: {name: "New Training Session", startsAt: :"2018-10-20T01:00:00Z", endsAt:"2018-10-20T02:00:00Z"}, gatheringId: 232) {
    name
    startsAt
    id
  }
}

CURL Request

curl -X POST https://api.certaintouchpoint.com/graphql \
-H 'Content-Type: application/graphql' \
-H 'Authorization: Bearer 123abcveryLongAuthorizationToken456def' \
-d '{ mutation { createAgendaSession(agendaSession: { name: "New Training Session", startsAt: :"2018-10-20T01:00:00Z", endsAt:"2018-10-20T02:00:00Z"}, gatheringId: 232) { name startsAt id } }'

GraphQL Response

{
  "data": {
    "createAgendaSession": {
      "name": "New Training Session",
      "startsAt": "2018-10-20T01:00:00Z",
      "id": "71111"
    }
  }
}

AgendaSessionParams

When creating an agenda session, name and startsAt are required.

Was this article helpful? [Yes] [No]

Related articles

[END MARKDOWN]