Skip to content

Create Organiser

POST/organisers

Create a new organiser.

Attributes

AttributeTypeDescription
name *string
eventId *number
emailstring
descriptionstring
twitterstring
instagramstring
urlstring
ordernumber
settingsobject
imageIdnumber

Fields marked with * are required.

Request

js
import Confetti from 'confetti'

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

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