Skip to content

Create Sponsor

POST/sponsors

Create a new sponsor.

Attributes

AttributeTypeDescription
name *string
sponsorLevelId *number
descriptionstring
websitestring
ordernumber
imageIdnumber

Fields marked with * are required.

Request

js
import Confetti from 'confetti'

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

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