ReferenceHTTP API
calendars
The calendars router: 4 methods of the calendars capability, with tier, scope, input and output.
Capability calendars · scope system · mode singleton · source packages/types/src/capabilities/calendars.cap.ts:71.
Every method is called at /trpc/calendars.<method> — queries with GET, mutations with POST. See How to call and Authorization.
| Method | Kind | Tier | Token scope | Viewer |
|---|---|---|---|---|
listCalendars | query | admin | admin only | no |
listEvents | query | admin | admin only | no |
getPreferences | query | admin | admin only | no |
setCalendarPreference | mutation | admin | admin only | no |
calendars.listCalendars
- Kind: query —
GET /trpc/calendars.listCalendars - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: no
- Try it: open
/system/api-explorer?method=calendars.listCalendarson your hub
Input
voidOutput
CalendarEntrySchema[]Shapes: CalendarEntrySchema
calendars.listEvents
- Kind: query —
GET /trpc/calendars.listEvents - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: no
- Try it: open
/system/api-explorer?method=calendars.listEventson your hub
Input
CalendarListEventsInputSchemaOutput
CalendarEventSchema[]Shapes: CalendarListEventsInputSchema · CalendarEventSchema
calendars.getPreferences
- Kind: query —
GET /trpc/calendars.getPreferences - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: no
- Try it: open
/system/api-explorer?method=calendars.getPreferenceson your hub
Input
{}Output
CalendarPreferencesSchemaShapes: CalendarPreferencesSchema
calendars.setCalendarPreference
- Kind: mutation —
POST /trpc/calendars.setCalendarPreference - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: no
- Try it: open
/system/api-explorer?method=calendars.setCalendarPreferenceon your hub
Input
CalendarSetPreferenceInputSchemaOutput
CalendarPreferencesSchemaShapes: CalendarSetPreferenceInputSchema · CalendarPreferencesSchema