---
title: "Block Units — API Reference"
canonical: "https://repull.dev/docs/api/inventory/unit-blocks-create"
description: "POST /v1/unit-blocks — take rooms out of sale in the PMS: blocked, out of service, or held for a guest for a set number of hours."
updated: "2026-12-04T21:50:32.403Z"
commit: "05317760b17f5bea607efd630dee2eff2bb5ec44"
---

# Block units: out of sale, out of service, or held for a guest

Unit Blocks & Group Holds · `POST /v1/unit-blocks`

Block units: out of sale, out of service, or held for a guest

`POST /v1/unit-blocks`

> **Note:**
>
> Made in the property's PMS first, then recorded here. Cloudbeds: \`blocked\` and \`out\_of\_service\` are room blocks, \`hold\` is a courtesy hold. Other providers answer 422 pms\_write\_unsupported; \`GET /v1/listings/{id}\` → \`capabilities.inventory\` says what a listing supports. With the connection's write policy \`reservations.api\` off: 409 pms\_writes\_off. Guide: /docs/multi-unit#unit-blocks

#### Request

```
curl -X POST https://api.repull.dev/v1/unit-blocks \
  -H "Authorization: Bearer $REPULL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "type": "out_of_service", "startDate": "2027-03-10", "endDate": "2027-03-12", "reason": "Repainting", "units": [{ "listingId": 30908, "unitId": "679314-2" }] }'
```

#### Response

```
{
  "id": "17961907985432548",
  "type": "hold",
  "startDate": "2027-03-10",
  "endDate": "2027-03-12",
  "reason": null,
  "units": [
    { "listingId": "30908", "unitId": "679314-0" },
    { "listingId": "30909", "unitId": "679315-0" }
  ],
  "guest": { "firstName": "Ada", "lastName": "Feather", "email": "ada@example.com", "phone": "+14035551234" },
  "holdHours": 48,
  "expiresAt": "2027-02-03T14:05:00.000Z",
  "provider": "cloudbeds",
  "createdAt": "2027-02-01T14:05:00.000Z",
  "updatedAt": "2027-02-01T14:05:00.000Z"
}
```

**Body Parameters**

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `type` | `string` | Yes | \`blocked\` (out of sale: owner stay, event), \`out\_of\_service\` (maintenance) or \`hold\` (kept for \`guest\` for \`holdHours\`; when it lapses the PMS releases the units). |
| `startDate` | `date` | Yes | First blocked night, YYYY-MM-DD. |
| `endDate` | `date` | Yes | The day after the last blocked night (exclusive, like a checkout date). |
| `units` | `[{ listingId, unitId }]` | Yes | 1 to 200 units, all in one property; they may span several room types. \`unitId\` comes from \`GET /v1/listings/{id}/units\`. |
| `reason` | `string` | No | Why the units are out of sale (max 500 characters). |
| `guest` | `{ firstName?, lastName, email?, phone? }` | No | \`hold\` only, and required there: who the units are kept for. Cloudbeds needs the guest's email and phone. |
| `holdHours` | `integer` | No | \`hold\` only, and required there: how long the units are kept, 1 to 8760 hours. |
