Update Speaker
PATCH
/speakers/:idUpdate an existing speaker. Only the attributes you include are changed.
Attributes
| Attribute | Type | Description |
|---|---|---|
firstName | string | |
eventId | number | |
lastName | string | |
order | string | |
occupation | string | |
bio | string | |
status | string | |
settings | string | |
imageId | string |
Fields marked with * are required.
Request
js
import Confetti from 'confetti'
const confetti = new Confetti({ apiKey: 'your-key' })
const speaker = await confetti.speakers.update(107634, {
firstName: 'Jane',
lastName: 'Doe',
})sh
curl -X PATCH "https://api.confetti.events/speakers/107634" \
-H "Content-Type: application/json" \
-H "Authorization: apikey your-key" \
-d '{
"data": {
"type": "speaker",
"id": "107634",
"attributes": {
"firstName": "Jane",
"lastName": "Doe"
}
}
}'