---
title: "putRoomBlock"
method: PUT
path: "/putRoomBlock"
tags: ["Room"]
---

# putRoomBlock

`PUT /putRoomBlock`

Updates a room block.

## Response `200`

200 Response

- PutRoomBlockResponse
  - `success` boolean — Returns if the request could be completed
  - `propertyID` string — Property ID
  - `roomBlockID` string — Room block ID
  - `roomBlockType` 'blocked_dates' | 'out_of_service' | 'courtesy_hold' — Room block type. 'blocked_dates' - Room block. 'out_of_service' - Out of service block. 'courtesy_hold' - Courtesy hold.
  - `roomBlockReason` string — Room block reason
  - `startDate` string, date — Room block start date
  - `endDate` string, date — Room block end date
  - `rooms` object[] — All rooms for room block. For properties using split inventory, this includes both source rooms (explicitly requested) and linked rooms (automatically added based on shared inventory configuration).
    - `eventID` string — Event ID (unique identifier for this specific room's block entry)
    - `roomID` string — Room ID
    - `roomTypeID` string — Room Type ID
    - `isSource` boolean — Indicates whether this room was explicitly requested (true) or automatically added due to split inventory configuration (false). Auto-added rooms cannot be individually removed or swapped; they are managed through their source room.
    - `sourceEventIds` string[], nullable — Event IDs of source events that triggered this auto-added room. Null for source rooms. Present only for properties using split inventory.
    - `linkedEventIds` string[], nullable — Event IDs of auto-added rooms triggered by this source room. Null for auto-added rooms. Present only for properties using split inventory.
  - `message` string — To be used in case any error occurs (if success = false). If success = true, it does not exist.

---

[API](https://skmtc.net/cloudbeds/apis/cloudbeds-api.md) · [All operations](https://skmtc.net/cloudbeds/apis/cloudbeds-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cloudbeds/cloudbeds-api/revisions/2faa857793e8/schema)
