Create an event
create_eventAdds an event to a CalDAV calendar with auto-generated UID, preventing accidental overwrites. Supports all-day events, timezones, alarms, recurrence, and reminders.
Instructions
Adds an event to a calendar. The UID and the file name are generated here, so an existing entry can never be overwritten by accident. Times without an offset are read in the timezone argument or in CALDAV_TIMEZONE.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | When it ends. For an all-day event this is exclusive, as iCalendar defines it: a single day ends on the following date. Defaults to one hour after the start, or one day for an all-day event. | |
| start | Yes | When it starts. A bare date makes it an all-day event. | |
| alarms | No | Replaces the plain DISPLAY reminders. An empty array removes them. Reminders this server cannot write — email alarms, repeating ones, ones with an attachment — are always kept, and the answer says how many. | |
| status | No | ||
| summary | Yes | The title. | |
| location | No | Where it happens. Pass null to remove it, leave it out to keep it. | |
| timezone | No | IANA zone for timestamps that carry no offset, e.g. "Europe/Berlin". Defaults to CALDAV_TIMEZONE. Refused together with a value that already carries an offset. | |
| categories | No | Replaces every category. Pass null or an empty array to clear. | |
| recurrence | No | A raw RRULE, e.g. "FREQ=WEEKLY;BYDAY=MO;COUNT=10". Given as written rather than as separate fields, because the rule grammar is richer than any short set of parameters, and a half-modelled rule is how a series ends up wrong. | |
| calendar_id | Yes | A calendar id from list_calendars — its path. A full URL or the final path segment work too. | |
| description | No | Longer text. Pass null to remove it, leave it out to keep it. | |
| transparent | No | True to leave the time free rather than marking it busy. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| uid | Yes | ||
| etag | No | ||
| created | Yes | ||
| calendar | Yes |