Skip to content

Update Ticket

PATCH/tickets/:id

Update an existing ticket. Only the attributes you include are changed.

Attributes

AttributeTypeDescription
firstNamestring
lastNamestring
emailstring
statusstringattending, invited
phonestring
companystring
commentstringInternal note visible only to workspace teammates. Not shown to attendees.
guestsnumber
valuesobject
checkinAtstring
ticketBatchIdnumber
sendEmailConfirmationbooleanIf 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"
    }
  }
}'