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

# Create blocked slot

> Blocks a time range on a calendar.

`highlevel.createBlockedSlot` blocks a time range on a calendar.

```ts automations/highlevel-create-blocked-slot.automation.ts theme={null}
import { automation, markSignificant } from "automate.ax"
import { highlevel } from "automate.ax/highlevel"

export default automation("Create blocked slot", () => {
  markSignificant(
    highlevel.createBlockedSlot({
      calendarId: "CVokAlI8fgw4WYWoCtQz",
    }),
  )
})
```

## Input

| Field            | Type     | Required | Description                                                |
| ---------------- | -------- | -------- | ---------------------------------------------------------- |
| `title`          | `string` | No       | Title                                                      |
| `calendarId`     | `string` | Yes      | Set either a calendar ID or an assigned user ID, not both. |
| `assignedUserId` | `string` | No       | Set either a calendar ID or an assigned user ID, not both. |
| `startTime`      | `string` | No       | Start Time                                                 |
| `endTime`        | `string` | No       | End Time                                                   |

Automate.ax supplies the connected sub-account's location ID. Optional second argument `{ account }` selects a named HighLevel binding.

## Output

| Field            | Type     | Required | Description      |
| ---------------- | -------- | -------- | ---------------- |
| `id`             | `string` | Yes      | Id               |
| `locationId`     | `string` | Yes      | Location Id      |
| `title`          | `string` | Yes      | Title            |
| `startTime`      | `object` | Yes      | Start Time       |
| `endTime`        | `object` | Yes      | End Time         |
| `calendarId`     | `string` | No       | Calendar id      |
| `assignedUserId` | `string` | No       | Assigned User Id |

This action calls `POST /calendars/events/block-slots` with HighLevel API version `2021-04-15` and requires `calendars/events.write`. HighLevel validation and permission errors fail the action. Rate limits honor the provider's retry timing. Automate.ax does not automatically replay this create or send operation after an indeterminate transport failure.
