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

# roark integrations calendar target update

> Update a bookable target

Changes what agents ALREADY PUBLISHED against this target book, with no new tool version, the same thing editing a Cal.com event type on cal.com does. `hours` replaces the whole week when present, because a rota is described as a week and a partial update of one window has no meaning anybody would expect. The calendar cannot be changed: it is the target’s identity for the booking ledger, so moving it would orphan every appointment made on the old one.

```bash Synopsis theme={"theme":{"light":"everforest-light","dark":"everforest-dark"}}
roark integrations calendar target update <connection-id> <target-id> [options]
```

> [!NOTE]
>
> Calls `PUT /v1/integrations/calendar/{connectionId}/targets/{targetId}`

## Arguments

**connection-id** `string` *required*

Calendar connection ID.

**target-id** `string` *required*

Bookable target ID.

## Options

**--name** `string`

Unique within the connection, and how a config file refers to this target. Letters, digits, spaces, \_ or -.

**--duration-minutes** `integer`

**--buffer-before-minutes** `integer`

Dead time before an appointment, counted as busy when a slot is offered. Defaults to 0.

**--buffer-after-minutes** `integer`

**--min-notice-minutes** `integer`

How soon from now an appointment may be made. Defaults to 120.

**--horizon-days** `integer`

How far ahead appointments may be made. Defaults to 30.

**--slot-interval-minutes** `integer`

The grid slots are offered on. Defaults to the duration, which gives back-to-back appointments.

**--all-day-events-block** `switch`

Whether an all-day event closes the day. Defaults to true, because a calendar marks all-day events free unless their creator says otherwise and a public holiday entered as one would otherwise be bookable.

**--hours** `array`

The windows of the week appointments are offered in. Omit to adopt Monday to Friday, 09:00 to 17:00. A target with no windows offers nothing at all, which reads to a caller as a permanently full diary.

## Example

```bash theme={"theme":{"light":"everforest-light","dark":"everforest-dark"}}
roark integrations calendar target update <connection-id> <target-id>
```

Every command also takes the [global options](https://docs.roark.ai/cli-reference/overview.md#global-options) and sets one
of the [exit codes](https://docs.roark.ai/cli-reference/overview.md#exit-codes).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.