Skip to content
Skip to main content

Update and delete calendar events

Last updated:

You created an event from your app, and now the meeting moves or gets cancelled. You need to push that change back to every attendee’s calendar, the same way the create call did, without writing separate update logic for Google, Outlook, and the rest.

The Nylas Events API uses one update call and one delete call. You change the fields that moved, or remove the event entirely, and the participants see the update on their own calendars across all 4 providers.

Send a PUT /v3/grants/{grant_id}/events/{event_id} request with the calendar_id query parameter and the fields you want to change. Nylas applies the update and notifies participants, so a new time or title reaches attendees’ calendars across all 4 providers. Top-level fields merge, but a nested object like when is replaced wholesale, so send the complete block to reschedule.

The request below reschedules an event and updates its title and participants.

Send a DELETE /v3/grants/{grant_id}/events/{event_id} request with the calendar_id query parameter. Nylas removes the event from the user’s calendar and, for events with participants, sends a cancellation on their provider. This works the same across all 4 providers, so you delete a Google event and an Outlook event with an identical call.

Things to know about updating and deleting events

Section titled “Things to know about updating and deleting events”

A couple of provider behaviors matter here. The calendar_id query parameter is required on both calls, because an event ID is only unique within its calendar, so passing the wrong calendar returns an error. Updates and deletes propagate to participants as provider notifications, so don’t loop a bulk update without considering the invitation email it generates across all 4 providers.

Recurring events behave differently: updating or deleting one occurrence, the rest of the series, or the whole series each take a different approach. See Recurring events and RRULE for editing and deleting parts of a series.