Skip to content

Create Schedule Item

POST/schedule-items

Create a new schedule item.

Attributes

AttributeTypeDescription
title *string
eventId *number
startdate
locationstring
descriptionstring
durationnumber
settingsobject

Fields marked with * are required.

Request

js
import Confetti from 'confetti'

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

const scheduleItem = await confetti.scheduleItems.create({
  title: 'example',
  eventId: 1,
})
sh
curl -X POST "https://api.confetti.events/schedule-items" \
  -H "Content-Type: application/json" \
  -H "Authorization: apikey your-key" \
  -d '{
  "data": {
    "type": "scheduleItem",
    "attributes": {
      "title": "example",
      "eventId": 1
    }
  }
}'