> ## Documentation Index
> Fetch the complete documentation index at: https://docs.automate.ax/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# Update event

> Patch selected fields on an existing Google Calendar event.

`updateEvent` changes only the event fields you provide. Use it to reschedule,
rename, recolor, or change guests without replacing unrelated event metadata.

## Example

```ts theme={null}
import { automation, onHttpRequest } from "automate.ax"
import { updateEvent } from "automate.ax/google-calendar"

export default automation("Reschedule planning", () => {
  onHttpRequest({ scope: "automation" })

  updateEvent({
    calendar: "Team Calendar",
    event: "event-id",
    schedule: {
      start: "2026-08-10T10:00:00-07:00",
      end: "2026-08-10T10:45:00-07:00",
    },
    sendUpdates: "all",
  })
})
```

## Inputs

`event` is required and accepts an event ID or Calendar event URL. `calendar`
defaults to `"primary"`. Provide at least one mutable field: `summary`,
`schedule`, `description`, `location`, `colorId`, `attendees`, `attachments`,
`recurrence`, `reminders`, `extendedProperties`, `transparency`, `visibility`,
the three `guestsCan...` permissions, or `createMeet: true`. These fields use
the same types as [Create event](/reference/integrations/google-calendar/actions/create-event#inputs).
`sendUpdates` accepts `"all"`, `"externalOnly"`, or `"none"`; `account`
selects the Google account.

Arrays and objects supplied to a patch are provider replacements for those
fields. For example, `attendees: []` removes the attendee list and
`attachments: []` removes attachments.

## Output

Returns the updated `CalendarEvent`; see [Get event](/reference/integrations/google-calendar/actions/get-event#output). The action fails if the event is not in the selected calendar or the account cannot edit it.
