Skip to content

Create Sponsor Level

POST/sponsor-levels

Create a new sponsor level.

Attributes

AttributeTypeDescription
name *string
eventId *number
styleenumlarge, medium, small
ordernumber

Fields marked with * are required.

Request

js
import Confetti from 'confetti'

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

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