Poly+Uni

Send your events with the API

1. Get a key

2. Send your events

curl -X PUT https://polyuni.ch/api/v1/events \
  -H "Authorization: Bearer pu_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"events": [
    {"id": "quiz-2026-11-05", "title": "Pub quiz", "date": "2026-11-05", "start": "20:00", "end": "23:00",
     "location": "LochNess, CAB", "url": "https://example.ch/quiz", "price": "Free", "category": "Games",
     "description": "Teams of up to 6.", "image": "https://example.ch/quiz.jpg"}
  ]}'
{"ok": true, "club": "LochNess", "events": 1, "ignored_past": 0}

3. Fields of an event

FieldWhat it holds
id
titlerequired
daterequired
startrequired
locationrequired
end
end_date
repeat
url
price
description
category
image

4. Answers

200
422
400
401
429

← Back to the agenda