The calendar bridge lists the device’s calendars and their events in a date range, and creates, updates and deletes events.
dotnet add package Shiny.AppDeviceBridge.Calendar
builder . UseAppDeviceBridge (
bridge => bridge . AddCalendarBridge (),
Client
C#
TypeScript
ICalendarBridge
AddCalendarBridgeClient()
CalendarBridge
Topic
Details
Platforms
Android, iOS, Mac Catalyst, macOS and Windows.
Access
POST calendar/access takes ReadWrite (the default), ReadOnly or WriteOnly. Write-only access (iOS 17+) is reported as Restricted.
Listing
GET calendar/events requires start and end, at most 366 days apart. Paging works like contacts.
Reminders
reminderMinutes counts minutes before the start.
Read-only fields
attendees, the organizer and recurrence can be read but not written.
Read-only calendars
writing to one returns 403 read_only, and so does writing to a system calendar on Windows, which only allows writes to app-owned calendars.
Deleting
DELETE calendar/events/{id}?series=true removes the rest of a recurring series rather than one occurrence.
Mac Catalyst, sandboxed macOS
also need the com.apple.security.personal-information.calendars entitlement. Without it, access is denied without a prompt.
Every route answers 403 access_denied until access has been granted.
import { CalendarBridge } from "@shinyorg/appdevicebridge" ;
const calendar = new CalendarBridge () ;
await calendar . requestAccess ( { access : "ReadWrite" } ) ;
const week = await calendar . getEvents ( new Date () , new Date (Date . now () + 7 * 864e5 ) , { limit : 50 } ) ;
for ( const e of week . items) console . log (e . start , e . title) ;
const created = await calendar . createEvent ( {
start : "2026-10-12T15:00:00-04:00" ,
end : "2026-10-12T16:00:00-04:00" ,
await calendar . updateEvent (created . id ! , { location : "123 Main St" } ) ;
Event lists page with offset and limit; hasMore says whether to ask again.
GET /_bridge/ calendarWhere calendar access stands, without asking. POST /_bridge/ calendar/accessAsks for access, prompting if the OS has not asked before. GET /_bridge/ calendar/calendarsGET /_bridge/ calendar/eventsEvents overlapping a range of at most 366 days, a page at a time, in start order. POST /_bridge/ calendar/eventsCreates an event. GET /_bridge/ calendar/events/{id} PUT /_bridge/ calendar/events/{id} Changes only what changes sets. DELETE /_bridge/ calendar/events/{id} Deletes an event — or, with series, the rest of the recurring series it belongs to. Where calendar access stands, without asking.
C# ICalendarBridge.GetAccessAsyncTS CalendarBridge.getAccess
Response 200 CalendarAccessResult CalendarAccessResult · 1 field POST /_bridge/ calendar/access# Asks for access, prompting if the OS has not asked before.
C# ICalendarBridge.RequestAccessAsyncTS CalendarBridge.requestAccess
Body application/json · CalendarAccessRequest CalendarAccessRequest · 1 field Response 200 CalendarAccessResult CalendarAccessResult · 1 field GET /_bridge/ calendar/calendars#
C# ICalendarBridge.GetCalendarsAsyncTS CalendarBridge.getCalendars
Response 200 CalendarList CalendarList · 1 field GET /_bridge/ calendar/events# Events overlapping a range of at most 366 days, a page at a time, in start order.
C# ICalendarBridge.GetEventsAsyncTS CalendarBridge.getEvents
Parameter In Type startquery Date | string required endquery Date | string required calendarIdquery string | null optional searchquery string | null optional offsetquery number optional limitquery number optional
Response 200 CalendarEventPage CalendarEventPage · 4 fields POST /_bridge/ calendar/events# Creates an event. A read-only calendar fails with read_only.
C# ICalendarBridge.CreateEventAsyncTS CalendarBridge.createEvent
Body application/json · NewCalendarEvent NewCalendarEvent · 10 fields titlestring At most 1,000 characters. startDate | string endDate | string Not before start. calendarIdstring | null The calendar to create it in; the device's default calendar when null. descriptionstring | null At most 10,000 characters. locationstring | null isAllDayboolean availabilityEventAvailability urlstring | null An absolute http or https URL. reminderMinutesnumber [] | null Whole minutes before the start; at most 10, each up to four weeks.
Response 200 CalendarEvent CalendarEvent · 15 fields idstring | null calendarIdstring | null titlestring descriptionstring | null locationstring | null startstring endstring isAllDayboolean availabilityEventAvailability urlstring | null isRecurringboolean recurrenceRulestring | null reminderMinutesnumber []attendeesCalendarAttendee []organizerCalendarAttendee | null
GET /_bridge/ calendar/events/{id} #
C# ICalendarBridge.GetEventAsyncTS CalendarBridge.getEvent
Parameter In Type idpath string required
Response 200 CalendarEvent CalendarEvent · 15 fields idstring | null calendarIdstring | null titlestring descriptionstring | null locationstring | null startstring endstring isAllDayboolean availabilityEventAvailability urlstring | null isRecurringboolean recurrenceRulestring | null reminderMinutesnumber []attendeesCalendarAttendee []organizerCalendarAttendee | null
PUT /_bridge/ calendar/events/{id} # Changes only what changes sets. An event cannot move between calendars.
C# ICalendarBridge.UpdateEventAsyncTS CalendarBridge.updateEvent
Parameter In Type idpath string required
Body application/json · CalendarEventChanges CalendarEventChanges · 9 fields titlestring | null startDate | string | null endDate | string | null descriptionstring | null locationstring | null isAllDayboolean | null availabilityEventAvailability | null urlstring | null reminderMinutesnumber [] | null
Response 200 CalendarEvent CalendarEvent · 15 fields idstring | null calendarIdstring | null titlestring descriptionstring | null locationstring | null startstring endstring isAllDayboolean availabilityEventAvailability urlstring | null isRecurringboolean recurrenceRulestring | null reminderMinutesnumber []attendeesCalendarAttendee []organizerCalendarAttendee | null
DELETE /_bridge/ calendar/events/{id} # Deletes an event — or, with series, the rest of the recurring series it belongs to.
C# ICalendarBridge.DeleteEventAsyncTS CalendarBridge.deleteEvent
Parameter In Type idpath string required seriesquery boolean optional
Response 204 No content
This bridge raises no events — everything it does is a request and its response.
JSON property names are camelCase and enums travel as their names. A ? marks a property the payload may omit;| null one that may be null.
CalendarAccessResultobject # Where a permission stands. Reported by every bridge that needs one; the names match Shiny's own.
"Unknown""NotSupported""NotSetup""Disabled""Restricted""Denied""Available"
CalendarAccessRequestobject # The access to ask for. Write-only is iOS 17 and later; elsewhere it is treated as read-write.
"ReadOnly""WriteOnly""ReadWrite"
idstring | null namestring colorstring | null isReadOnlyboolean accountstring | null
An event as the device holds it. Attendees, the organizer and recurrence can be read but not written.
idstring | null calendarIdstring | null titlestring descriptionstring | null locationstring | null startstring endstring isAllDayboolean availabilityEventAvailability urlstring | null isRecurringboolean recurrenceRulestring | null reminderMinutesnumber []attendeesCalendarAttendee []organizerCalendarAttendee | null
"Busy""Free""Tentative""Unavailable"
"Required""Optional""Resource""Unknown"
"Unknown""Pending""Accepted""Declined""Tentative"
An event to create. title, start and end are required.
titlestring At most 1,000 characters. startDate | string endDate | string Not before start. calendarId?string | null The calendar to create it in; the device's default calendar when null. description?string | null At most 10,000 characters. location?string | null isAllDay?boolean availability?EventAvailability url?string | null An absolute http or https URL. reminderMinutes?number [] | null Whole minutes before the start; at most 10, each up to four weeks.
CalendarEventChangesobject # Changes to an event. Anything left null stays as it is; an empty reminderMinutes clears them, and an empty url removes it.
title?string | null start?Date | string | null end?Date | string | null description?string | null location?string | null isAllDay?boolean | null availability?EventAvailability | null url?string | null reminderMinutes?number [] | null
These routes sit under AppDeviceBridgePolicies.Bridges like every other bridge: callers on this device by default.
See Security .