> ## 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 type

> Update a Calendly event type's scheduling configuration.

`calendly.updateEventType` changes a one-on-one event type without replacing unspecified settings.

```ts automations/update-calendly-event-type.automation.ts theme={null}
import { automation, onDashboardRun, sendEmail } from "automate.ax"
import { calendly } from "automate.ax/calendly"

export default automation("Update Calendly event type", () => {
  onDashboardRun({ title: "Update event type" })
  const eventType = calendly.updateEventType({
    eventTypeId: "event-type-id",
    duration: 45,
    name: "Extended customer onboarding",
  })
  sendEmail({ subject: "Event type updated", text: eventType.schedulingUrl })
})
```

`eventTypeId` is the final identifier segment of the event type URI. You can update its active state, name, description, duration, duration options, locale, color, and locations. Supply at most four unique `durationOptions`; when you also set `duration`, include it among those options.
