Skip to content

Update Sponsor

PUT/sponsors/:id

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

Attributes

AttributeTypeDescription
namestring
sponsorLevelIdnumber
descriptionstring
websitestring
ordernumber
imageIdnumber

All attributes are optional.

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 PUT "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"
    }
  }
}'