updateMeeting

Overview

updateMeeting is a GraphQL mutation used to update a meeting in Touchpoint.

GraphQL Mutation

mutation {
  updateMeeting(gatheringId:232, id: 3722, meeting: {
    name:"BetaGroup Company Presentation" startsAt:"2018-07-22T20:35:09Z"
    endsAt: "2018-07-28T20:35:09Z"
    participants: [
      { participantKind: "attendee", participantId: 2771895, roleLabel: "Investor" }
      { participantKind: "attendee", participantId: 208711, customMeetingName: "Meeting with BetaGroup" }
    ]}
  ) {
    name
    description
    startsAt
    endsAt
    externalId
    externalSource
    participants {
      customMeetingName
      participantId
      participantKind
      roleLabel
    }
  }
}

CURL Request

curl -X POST https://api.certaintouchpoint.com/graphql \
  -H 'Content-Type: application/graphql' \
  -H 'Authorization: Bearer 123abcveryLongAuthorizationToken456def' \
  -d '{ mutation { updateMeeting(meeting: { name:"BetaGroup Company Presentation" startsAt:"2018-07-22T20:35:09Z" endsAt: "2018-07-28T20:35:09Z" participants: [{ participantKind: "attendee", participantId: 2771895, roleLabel: "Investor" } { participantKind: "attendee", participantId: 208711, customMeetingName: "Meeting with BetaGroup" }]}, gatheringId: 232, id: 3722) { name description startsAt endsAt externalId externalSource participants { customMeetingName participantId participantKind roleLabel } }'

GraphQL Response

{
  "data": {
    "updateMeeting": {
      "startsAt": "2018-07-22T20:35:09Z",
      "participants": [
        {
          "roleLabel": null,
          "participantKind": "attendee",
          "participantId": 2771895,
          "customMeetingName": null
        },
        {
          "roleLabel": "Investor",
          "participantKind": "attendee",
          "participantId": 208711,
          "customMeetingName": "Meeting with BetaGroup"
        }
      ],
      "name": "BetaGroup Company Presentation10",
      "externalSource": null,
      "externalId": null,
      "endsAt": "2018-07-28T20:35:09Z",
      "description": ""
    }
  }
}

MeetingParams

MeetingParams defines the data structure for a meeting.

MeetingParticipantParams

MeetingParticipantParams defines a participant within a meeting.

Creating Relationships

To set participants, use the participants field with MeetingParticipantParams.

To set a location, use the location field with LocationParams (name for the location).

To set a survey, use the surveys field with SurveyParams (externalId for the survey).

MeetingParticipantParams