Create a speaker
createSpeaker takes gatheringId and a SpeakerCreateParams value in speaker. The fields firstName and lastName are required.
mutation CreateSpeaker($gatheringId: Int!) {
createSpeaker(
gatheringId: $gatheringId
speaker: {
firstName: "Avery"
lastName: "Stone"
jobTitle: "Chief engineer"
organization: "Example Corp"
kind: "Keynote"
biography: "<p>Avery leads the engineering team.</p>"
email: "avery@example.com"
externalId: "SPK-17"
}
) {
id
firstName
lastName
jobTitle
externalId
}
}
{
"data": {
"createSpeaker": {
"id": "301",
"firstName": "Avery",
"lastName": "Stone",
"jobTitle": "Chief engineer",
"externalId": "SPK-17"
}
}
}
A create does not always make a new speaker. If the event has a speaker with the same firstName, lastName, and externalId, and that speaker has no externalSource, Touchpoint changes that speaker. A request without externalId matches only a speaker that has no externalId.
A speaker with no externalSource cannot have the same firstName, lastName, jobTitle, and organization as another speaker of the event. If it does, the create or the update fails.
To set a photo, send photoUrl with the address of a .jpg or .png file. You can also send photo. See Scalars.
Touchpoint copies the photo after the mutation returns. Until the copy is complete, photo shows no photo or the old photo.
This article is a copy of Speakers in the Touchpoint API documentation.
Comments
0 comments
Please sign in to leave a comment.