Schedule
Overview
An event’s schedule is four things that nest:
A speaker is reused across every event the company runs, the way a
discount is — so speakers live at
/{company}/speakers, not under an
event. The sessions they are billed on hang off the event.
Subscription: All plans, including Free.
Scopes
Every endpoint under/event/{organizingEvent}/schedule needs events:read as well
as its own schedule:* scope. The event route group names events:read, and a token
must carry every scope on the stack — so a token holding only schedule:read gets a
403 on GET /schedule, with nothing in the URL to suggest why.
Every write also needs schedule:read. The schedule and speaker route groups name
it, so creating, updating or deleting takes schedule:read plus the write scope — a
token holding only schedule:create gets a 403.
/{company}/speakers sits at company level and does not need events:read.
An event has no schedule until one is created
GET /schedule returns an empty list for an event nobody has built an agenda for, and
creates nothing. The admin page draws a skeleton of default days in that situation;
the API deliberately does not — a read behind a read-only scope must not write. Call
Create timetable to add the first day.
GET /schedule is also not paginated. The schedule is a structure, not a feed, and
a caller that read half of it would have read nothing useful.
Identifiers
A location slug is generated from the name when the location is created and is never
regenerated. Renaming a location does not move the resource: a location created as
“Main Stage” and renamed to “Grand Stage” is still
main-stage. Two locations with the
same name in one day get main-stage and main-stage-1, so do not assume the slug from
the name — read it from the response.
Times
Every time in the schedule is wall clock in the event’s timezone, formattedHH:mm.
None of them is an ISO timestamp and none carries a UTC offset; the date they belong to
is the day’s own date.
- An activity’s
durationis in minutes. - An activity’s
ends_atis derived fromstarts_atandduration. It is read-only — sending it is ignored. - A timetable’s
starts_at/ends_atare the bounds the agenda is drawn between. Adding an activity outside them widens the day to fit rather than being refused, which is what the admin editor does. The day never widens past23:59of its own date, so an activity that runs past midnight takes it that far and no further.
Verbs
The mix is deliberate, not an oversight:
A request that carries a file is
multipart/form-data, which PATCH does not reach in
most HTTP clients. POST /page already solved this the same way; there is no _method
spoofing to do.
Images
The activityimage and the speaker avatar are fields of their record, not
separate resources. Send them as file parts on the same create or update request, with
the rest of the fields alongside.
- Accepted:
jpg,jpeg,png,webp,apng,avif, at most 1 MB. - Sending
image: null/avatar: nullremoves the stored file. multipart/form-datasends every field as a string, which is fine:"duration": "45"is accepted exactly like45.
Speaker avatars are always populated
avatar_url is never null and is never a gravatar URL. A speaker with no uploaded
photo gets an initials placeholder rendered as a data:image/svg+xml;base64,… URI you
can put straight into an <img src>. Do not write a null check for it — it will never
fire.
Endpoints
Get the schedule
- Method:
GET - Path:
/api/v1/{company}/event/{organizingEvent}/schedule - Scopes:
events:read+schedule:read
date, then location position, then activity
starts_at. Not paginated.
There is deliberately no index of timetables and no single GET for a location:
this call returns both, nested where they belong.
Response 200
Activity fields
Create timetable
- Method:
POST - Path:
/api/v1/{company}/event/{organizingEvent}/schedule/timetables/create - Scopes:
events:read+schedule:read+schedule:create
Request body
A duplicate
date is 422, not a silent second day.
Response 201
A single timetable in a data envelope, with its locations.
Show timetable
- Method:
GET - Path:
/api/v1/{company}/event/{organizingEvent}/schedule/timetables/{timetable} - Scopes:
events:read+schedule:read
404.
Update timetable
- Method:
PATCH - Path:
/api/v1/{company}/event/{organizingEvent}/schedule/timetables/{timetable} - Scopes:
events:read+schedule:read+schedule:update
date does not move
the activities on it — they keep their wall-clock times, which are then read against the
new date.
Delete timetable
- Method:
DELETE - Path:
/api/v1/{company}/event/{organizingEvent}/schedule/timetables/{timetable} - Scopes:
events:read+schedule:read+schedule:delete
Response 204
No content.
Create location
- Method:
POST - Path:
/api/v1/{company}/event/{organizingEvent}/schedule/timetables/{timetable}/locations/create - Scopes:
events:read+schedule:read+schedule:create
Request body
Response 201
A single location in a data envelope, carrying the slug it is addressed by from then
on.
Update location
- Method:
PATCH - Path:
/api/v1/{company}/event/{organizingEvent}/schedule/timetables/{timetable}/locations/{scheduleLocation} - Scopes:
events:read+schedule:read+schedule:update
404.
Delete location
- Method:
DELETE - Path:
/api/v1/{company}/event/{organizingEvent}/schedule/timetables/{timetable}/locations/{scheduleLocation} - Scopes:
events:read+schedule:read+schedule:delete
422 — a day with no
location cannot hold an activity. Delete the whole day instead.
Response 204
No content.
Create activity
- Method:
POST - Path:
/api/v1/{company}/event/{organizingEvent}/schedule/timetables/{timetable}/activities/create - Scopes:
events:read+schedule:read+schedule:create - Content type:
application/jsonormultipart/form-data(required to sendimage)
location is a slug, which only means anything within that
day.
Request body
An activity that starts before the day’s
starts_at or ends after its ends_at widens
the day to fit.
Response 201
A single activity in a data envelope.
Show activity
- Method:
GET - Path:
/api/v1/{company}/event/{organizingEvent}/schedule/activities/{activity} - Scopes:
events:read+schedule:read
404.
Update activity
- Method:
POST(notPATCH— it can carry a file; see Verbs) - Path:
/api/v1/{company}/event/{organizingEvent}/schedule/activities/{activity} - Scopes:
events:read+schedule:read+schedule:update
location moves the activity to another location of the same day. Moving it to
another day is not supported and is 422: the start time is wall clock against that
day’s date. Create it on the other day and delete this one instead.
image: null removes the stored image.
speakers replaces the whole list
Sending speakers replaces every speaker billed on the activity, it does not add to
them:
["Qp3xV", "k2Jd9"]— exactly these two, anyone else is removed[]— removes them all- key absent — the list is left alone
GET /schedule and send them back alongside the new one. Every
sqid must belong to this event’s company; one that does not is 422 with nothing
written.
Delete activity
- Method:
DELETE - Path:
/api/v1/{company}/event/{organizingEvent}/schedule/activities/{activity} - Scopes:
events:read+schedule:read+schedule:delete
Response 204
No content.
List speakers
- Method:
GET - Path:
/api/v1/{company}/speakers - Scope:
schedule:read(noevents:read— this is a company-level resource)
Query parameters
Show speaker
- Method:
GET - Path:
/api/v1/{company}/speakers/{speaker} - Scope:
schedule:read
404.
Create speaker
- Method:
POST - Path:
/api/v1/{company}/speakers/create - Scopes:
schedule:read+schedule:create - Content type:
application/jsonormultipart/form-data(required to sendavatar)
Request body
Creating a speaker does not put them on a session. Take the
id from the response and
name it in speakers on an activity.
Response 201
A single speaker in a data envelope.
Update speaker
- Method:
POST(notPATCH— it can carry a file; see Verbs) - Path:
/api/v1/{company}/speakers/{speaker} - Scopes:
schedule:read+schedule:update
short_bio and bio are independent: sending one keeps the other.
avatar: null removes the stored photo.
The change shows on every session the speaker is billed on, across every event of the
company.
Delete speaker
- Method:
DELETE - Path:
/api/v1/{company}/speakers/{speaker} - Scopes:
schedule:read+schedule:delete