createSpeaker

Arguments

GraphQL Mutation

mutation {
  createSpeaker(speaker: {firstName: "David Foster", lastName: "Wallace" }, gatheringId: 232) {
    firstName
    lastName
    id
  }
}

CURL Request

curl -X POST https://api.certaintouchpoint.com/graphql -H 'Content-Type: application/graphql' -H 'Authorization: Bearer 123abcveryLongAuthorizationToken456def' -d '{ mutation { createSpeaker(speaker: { firstName: "David Foster", lastName: "Wallace"}, gatheringId: 232) { firstName lastName id } }'

GraphQL Response

{“data":
{ "createSpeaker":
{ "lastName":"Wallace",
"id":"71111",
"firstName":"David Foster"
}
}
}

SpeakerParams

When creating a speaker, firstName and lastName are required.

Providing a Photo/Avatar

You may supply a speaker photo in several ways. Using the photoUrl attribute, you may supply a URL. Using the photo attribute you may supply either a Base64 encoded string or an image file using the multipart/form-data content type. An image file is preferred to the Base64 string as it will be smaller.

```