Update Ticket
PATCH
/tickets/:idUpdate an existing ticket. Only the attributes you include are changed.
Attributes
| Attribute | Type | Description |
|---|---|---|
firstName | string | |
lastName | string | |
email | string | |
status | string | attending, invited |
phone | string | |
company | string | |
comment | string | Internal note visible only to workspace teammates. Not shown to attendees. |
guests | number | |
values | object | |
checkinAt | string | |
ticketBatchId | number | |
sendEmailConfirmation | boolean | If set to true, an email confirmation will be sent to the attendee. |
Fields marked with * are required.
Request
js
import Confetti from 'confetti'
const confetti = new Confetti({ apiKey: 'your-key' })
const ticket = await confetti.tickets.update(3344691, {
firstName: 'Jane',
lastName: 'Doe',
email: 'jane@example.com',
phone: '+46701234567',
comment: 'A note',
})sh
curl -X PATCH "https://api.confetti.events/tickets/3344691" \
-H "Content-Type: application/json" \
-H "Authorization: apikey your-key" \
-d '{
"data": {
"type": "ticket",
"id": "3344691",
"attributes": {
"firstName": "Jane",
"lastName": "Doe",
"email": "jane@example.com",
"phone": "+46701234567",
"comment": "A note"
}
}
}'