Create and publish
How an organization creates an event, saves a draft and makes it public.
An organization creates an event with a short four-step form. It can save a draft at any point and publish when everything is ready.
How it works
Fill in the steps in any order. A preview shows the event as people will see it.
Add a cover image. It uploads as soon as it is picked (PNG, JPEG, WebP or GIF, up to 5 MB).
Save a draft or publish. A draft can be finished later from My Events.
Good to know
| A draft needs | Publishing also needs | |
|---|---|---|
| Name | 10 to 80 characters | same |
| Dates | a start in the future and an end after it | same |
| Description | optional | 20 to 200 characters |
| Cover image | optional | required |
| Place | optional | the venue for in-person, the meeting link for online, both for hybrid |
- The page address (like
/events/beach-cleanup) is made from the name and can never change later. - Times are entered in the event's own time zone. Visitors see that time, plus their own when it differs.
- Unpublishing a live event back to a draft only works while nobody has joined. After that, the organizer cancels instead.
- Deleting only works for drafts. A published event is never deleted.
- Extra details such as the agenda, cost, what to bring and languages are added later on the edit form.
- Create:
POST /events/createwithstatus: draftor published. A takenuidanswers 409; reserved words aremine,new,create,edit,admin,api. - Publish, unpublish, delete:
POST /events/:uid/publish,POST /events/:uid/unpublish,DELETE /events/:uid(drafts only). Saves use aversioncheck, so a stale save answers 409. - Cover upload:
POST /uploads/event-coversreturns a short-lived Vercel Blob client token (or a signed localPUT /uploads/local/:tokenin development). The event stores only the https link. - Tags: up to 8, each up to 30 characters. Capacity: 1 to 100000, or empty for no limit. Time zones must be full IANA names or
UTC.
| Piece | Where |
|---|---|
| Form | CreateEvents.tsx at /organization/events/new |
| Browser checks | validateEvent.ts |
| API rules | event.validation.ts |
| Uploads | upload.service.ts |