Skip to content

Update Sponsor

PATCH/sponsors/:id

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

Attributes

AttributeTypeDescription
namestring
sponsorLevelIdnumber
descriptionstring
websitestring
orderstring
imageIdstring

Fields marked with * are required.

Request

js
import Confetti from 'confetti'

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

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