Update Sponsor Level
PATCH
/sponsor-levels/:idUpdate an existing sponsor level. Only the attributes you include are changed.
Attributes
| Attribute | Type | Description |
|---|---|---|
name | string | |
eventId | number | |
style | string | |
order | string |
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"
}
}
}'