Skip to content

Update Sponsor Level

PATCH/sponsor-levels/:id

Update an existing sponsor level. Only the attributes you include are changed.

Attributes

AttributeTypeDescription
namestring
eventIdnumber
stylestring
orderstring

Fields marked with * are required.

Request

js
import Confetti from 'confetti'

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

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