---
title: Update an out-of-office entry
description: Patches the range and/or notes.
api_method: PATCH
api_path: "/v1/out-of-office/{entryId}"
canonical_url: https://wiblo.app/docs/developers/api/out-of-office/update-out-of-office-entry
last_updated: 2026-07-28T18:08:25+02:00
md_url: https://wiblo.app/docs/developers/api/out-of-office/update-out-of-office-entry.md
---

# Update an out-of-office entry

`PATCH /v1/out-of-office/{entryId}`

Patches the range and/or notes. The merged range must stay valid and must not overlap the member's other entries (409 `OVERLAPPING_OOO`). Members patch their own; owner/admin anyone's. The response's `conflicts` array re-evaluates the non-blocking booking warning against the effective window. Per-user rate-limited at 60/60s.

## Path parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `entryId` | `string` | Yes |  |

## Headers

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `X-Wiblo-Workspace` | `string` | Yes | Workspace id the call is scoped to. The actor must hold an active membership in it; a foreign or unknown id collapses onto 404 WORKSPACE_NOT_FOUND. |

## Request body

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `start_time` | `string` | No | New start of the blocked range — UTC ISO 8601 datetime. |
| `end_time` | `string` | No | New end of the blocked range — UTC ISO 8601 datetime; the merged range must keep the end after the start. |
| `notes` | `string \| null` | No | Free-form note (max 500 characters); `null` clears it. |

## Request

**curl**

```bash
curl https://api.wiblo.app/v1/out-of-office/4e9d2c7a-1f5b-4c8e-9a3d-6b2f8c4e7a1d \
  -X PATCH \
  -H "Authorization: Bearer $WIBLO_TOKEN" \
  -H "X-Wiblo-Workspace: $WIBLO_WORKSPACE_ID" \
  -H "Content-Type: application/json" \
  -d '{
  "end_time": "2026-09-09T00:00:00.000Z",
  "notes": "Extended, back Wednesday 9 September."
}'
```

**TypeScript**

```ts
import { createSdk, updateOutOfOfficeEntry } from "@workspace/sdk"

const sdk = createSdk({ baseUrl: "https://api.wiblo.app" })

const { data, error } = await updateOutOfOfficeEntry({
  client: sdk,
  path: { entryId: "4e9d2c7a-1f5b-4c8e-9a3d-6b2f8c4e7a1d" },
  headers: { "X-Wiblo-Workspace": "..." },
  body: {
    "end_time": "2026-09-09T00:00:00.000Z",
    "notes": "Extended, back Wednesday 9 September."
  },
})
```

## Example response

```json
{
  "id": "4e9d2c7a-1f5b-4c8e-9a3d-6b2f8c4e7a1d",
  "workspace_id": "9c1b7e24-6a3f-4d58-b2e9-0f4a8c6d1e37",
  "member_id": "5f2d8c1b-7e4a-4b9d-a6c3-1d8e5f2a7b4c",
  "start_time": "2026-08-31T00:00:00.000Z",
  "end_time": "2026-09-09T00:00:00.000Z",
  "notes": "Extended, back Wednesday 9 September.",
  "created_at": "2026-07-28T10:24:00.000Z",
  "updated_at": "2026-07-28T16:40:00.000Z",
  "conflicts": [
    {
      "uid": "2f8e5c1a-9d4b-4a7e-8c2f-5e1b9d6a3c8e",
      "title": "Initial consultation",
      "service_title": "Initial consultation",
      "start_time": "2026-09-01T09:00:00.000Z",
      "end_time": "2026-09-01T09:30:00.000Z",
      "attendee_count": 1
    }
  ]
}
```

## Responses

**`200`** — The updated entry; `conflicts` warns about active bookings inside the effective window. Returns `OutOfOfficeWriteResponse`.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `string` | Yes | Unique id of the entry. |
| `workspace_id` | `string` | Yes | Workspace the entry belongs to. |
| `member_id` | `string` | Yes | Workspace member the out-of-office period belongs to. |
| `start_time` | `string` | Yes | Start of the blocked range (RFC 3339). |
| `end_time` | `string` | Yes | End of the blocked range (RFC 3339). |
| `notes` | `string \| null` | Yes | Free-form note; `null` when unset. |
| `created_at` | `string` | Yes | Creation timestamp (RFC 3339). |
| `updated_at` | `string` | Yes | Last-update timestamp (RFC 3339). |
| `conflicts` | `array<BookingConflictSummary>` | Yes | Active (pending/accepted) bookings inside the window (half-open overlap) — a non-blocking warning; the entry is written regardless. |

**`400`** — Body failed Zod validation, or the merged range is invalid (`VALIDATION_FAILED`). Returns `ApiErrorEnvelope`.

**`401`** — No valid session cookie or `wbl_*` bearer was present. Returns `ApiErrorEnvelope`.

**`403`** — A plain member touched another member's entry (`SELF_EDIT_ONLY`). Returns `ApiErrorEnvelope`.

**`404`** — No entry visible with this id (`OUT_OF_OFFICE_NOT_FOUND`). Returns `ApiErrorEnvelope`.

**`409`** — The new range overlaps another period (`OVERLAPPING_OOO`). Returns `ApiErrorEnvelope`.

**`422`** — Path param failed UUID validation (`INVALID_PARAMS`). Returns `ApiErrorEnvelope`.

**`429`** — Rate limit exceeded. The body's `error.code` is `RATE_LIMITED` and `error.details.retry_after` is the same number of seconds as the `Retry-After` header. Returns `ApiErrorEnvelope`.

### The BookingConflictSummary object

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `uid` | `string` | Yes | Public uid of the conflicting booking. |
| `title` | `string` | Yes | Title of the booking. |
| `service_title` | `string \| null` | Yes | Title of the booked service; `null` when the booking has none. |
| `start_time` | `string` | Yes | Start of the booking (RFC 3339). |
| `end_time` | `string` | Yes | End of the booking (RFC 3339). |
| `attendee_count` | `integer` | Yes | Number of attendees on the booking. |
