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

# Reassign booking

> Reassigns a round-robin booking to an automatically selected host.

`calcom.reassignBooking` reassigns a round-robin booking to an automatically selected host.

```ts automations/reassign-booking.automation.ts theme={null}
import { automation, markSignificant } from "automate.ax"
import { calcom } from "automate.ax/calcom"

export default automation("Reassign booking", () => {
  markSignificant(calcom.reassignBooking({ bookingUid: "booking-uid" }))
})
```

## Input

Pass these fields:

| Field        | Type     | Required | Description |
| ------------ | -------- | -------- | ----------- |
| `bookingUid` | `string` | Yes      | —           |

## Output

Returns these fields:

| Field                       | Type      | Required | Description                        |
| --------------------------- | --------- | -------- | ---------------------------------- |
| `bookingUid`                | `string`  | Yes      | Reassigned booking identifier.     |
| `reassignedTo`              | `object`  | Yes      | Newly assigned host.               |
| `reassignedTo.id`           | `integer` | Yes      | Host user ID.                      |
| `reassignedTo.name`         | `string`  | Yes      | Host name.                         |
| `reassignedTo.email`        | `string`  | Yes      | Host account email.                |
| `reassignedTo.displayEmail` | `string`  | Yes      | Host email displayed for bookings. |

Cal.com enforces account role, plan, and availability requirements. Provider rejections surface as structured action failures with the HTTP status and any `Retry-After` delay.
