Skip to content

Create Speaker

POST/speakers

Create a new speaker.

Attributes

AttributeTypeDescription
firstName *string
eventId *number
lastNamestring
ordernumber
occupationstring
biostring
statusenumannounced, hidden
settingsobject
imageIdnumber

Fields marked with * are required.

Request

js
import Confetti from 'confetti'

const confetti = new Confetti({ apiKey: 'your-key' })

const speaker = await confetti.speakers.create({
  firstName: 'Jane',
  eventId: 1,
  lastName: 'Doe',
})
sh
curl -X POST "https://api.confetti.events/speakers" \
  -H "Content-Type: application/json" \
  -H "Authorization: apikey your-key" \
  -d '{
  "data": {
    "type": "speaker",
    "attributes": {
      "firstName": "Jane",
      "eventId": 1,
      "lastName": "Doe"
    }
  }
}'