export_holidays_ics
Export a canton's holidays for a year as an iCalendar (.ics) document. Filter by public, school, or specific school type for direct calendar import.
Instructions
Export a canton's holidays for a year as an iCalendar (.ics) document.
Produce a ready-to-import .ics calendar of a canton's holidays for a year, filtered by public/school and Schulart.
Returns a ready-to-save text/calendar document with one all-day event per
holiday. include selects all (default), public or school; combine
with school_type (VS/MS/BS/EO) to narrow school holidays.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | Yes | ||
| canton | Yes | ISO code, e.g. CH-ZH | |
| include | No | all | |
| language | No | DE | |
| school_type | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ics | Yes | The full iCalendar (text/calendar) document. | |
| note | No | Human-readable caveat, set when provenance is 'degraded'. | |
| year | Yes | ||
| canton | Yes | ||
| source | Yes | Attribution string of the upstream source. | |
| filename | Yes | Suggested file name, e.g. holidays-CH-ZH-2026.ics. | |
| provenance | Yes | live_api = freshly fetched, cached = in-memory cache, degraded = upstream unreachable, stale or empty payload. | |
| event_count | Yes | Number of VEVENTs in the calendar. | |
| retrieved_at | Yes | ISO-8601 UTC timestamp of the underlying fetch. |