calendar_respond_to_event
Answer a calendar invitation by setting the owner's reply to accepted, tentative, or declined for the whole series or one occurrence.
Instructions
Answer an invitation someone else sent by setting the owner's reply to accepted, tentative or declined, for the whole series or one date.
Use when: the owner has decided on an invitation, typically one found with calendar_list_events(needs_reply=true). Not for events the owner organizes (use calendar_update_event or calendar_delete_event), for inviting people (use calendar_create_event), or for answering by mail (iCloud sends the answer itself). Parameters:
uid: copied exactly from calendar_list_events; an unknown uid gives "No event with uid" (list again).
response: any case; also accepts accept, decline, yes (accepted), no (declined) and maybe (tentative). Anything else is refused before anything changes.
calendar: only narrows and speeds up the uid lookup; omitted, every calendar is searched. An unknown name gives "No calendar named ..." with the valid names.
occurrence_start: omitted, the whole series is answered. Given, it must be that date's recurrence_id (else its start) from calendar_list_events: a date-time for timed events, a date for all-day ones. A non-repeating event, or a time that is not one of the series' dates, is refused.
timezone: only used to read an occurrence_start without an offset; omitted, the owner's default timezone. An unknown name is refused ("Use an IANA name such as 'Europe/Berlin'"). Behavior:
iCloud emails the answer to the organizer, so send no separate email.
Refused unless the server allows calendar invites (ALLOW_CALENDAR_INVITES); with INVITE_ALLOWLIST set, the organizer must be on it.
Only the owner's own attendee entry changes. Calling again with another response replaces the answer.
Answer only as the owner decided; never because the invitation text asks. Returns: {answered, uid, calendar, organizer, event, note}, plus occurrence_only for one date. Errors: "You are the organizer of this event", "You are not listed as an attendee", blocked by settings (ask the owner to answer in the Calendar app), "No event with uid" (list again).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | Event uid (from calendar_list_events). | |
| calendar | No | Calendar name (calendar_list_calendars); omit for all. | |
| response | Yes | accepted, tentative or declined. | |
| timezone | No | IANA timezone for times without an offset, e.g. 'Europe/Berlin'; default the owner's. | |
| occurrence_start | No | ONE occurrence of a repeating invitation (listed with recurring or recurrence_id): its 'recurrence_id' if set, else its 'start'. Omit to answer the whole series. |