Skip to content

Update Event

PUT/events/:id

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

Attributes

AttributeTypeDescription
namestring
startDatestring
endDatestring
statusenumdraft, open, cancelled
signupTypeenumrsvp, tickets
signupStartAtstring
signupEndAtstring
privacyVisibilityenumeveryone, invite, password
privacyAttendabilityenumeveryone, invite, password
privacyPasswordstring
rsvpLimitnumber
emailstring
timeZonestring
continuousboolean
slugstring
primaryColorstring
contrastColorstring
signupColorstring
textColorstring
secondaryContrastColorstring
hasAdvancedColorsboolean
fontNormalstring
fontNormalCategorystring
fontNormalVariantstring
fontHeadingstring
fontHeadingCategorystring
fontHeadingVariantstring
buttonBorderRadiusnumber
customCssstring
shareTitlestring
shareDescriptionstring
summarystring
smsSenderNamestring
ticketsPerPurchasenumber
locationNamestring
locationPlaceobject
workspaceIdnumber

All attributes are optional.

Request

js
import Confetti from 'confetti'

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

const event = await confetti.events.update(16500, {
  name: 'example',
  email: 'jane@example.com',
})
sh
curl -X PUT "https://api.confetti.events/events/16500" \
  -H "Content-Type: application/json" \
  -H "Authorization: apikey your-key" \
  -d '{
  "data": {
    "type": "event",
    "id": "16500",
    "attributes": {
      "name": "example",
      "email": "jane@example.com"
    }
  }
}'