Skip to content

Update Ticket

PUT/tickets/:id

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

Attributes

AttributeTypeDescription
firstNamestring
lastNamestring
emailstring
statusstringattending, invited, declined. Only free tickets can be declined. Declining a paid ticket is rejected by the API.
phonestring
companystring
commentstringInternal note visible only to workspace teammates. Not shown to attendees.
guestsnumber
valuesobjectPassing null clears every stored form answer.
checkinAtstring
ticketBatchIdnumberMoves the ticket to another batch. Passing null leaves the current batch unchanged.
sendEmailConfirmationbooleanIf set to true, an email confirmation will be sent to the attendee.

All attributes are optional.

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 PUT "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"
    }
  }
}'