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-blocksNote
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
typestringRequired`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).
startDatedateRequiredFirst blocked night, YYYY-MM-DD.
endDatedateRequiredThe day after the last blocked night (exclusive, like a checkout date).
units[{ listingId, unitId }]Required1 to 200 units, all in one property; they may span several room types. `unitId` comes from `GET /v1/listings/{id}/units`.
reasonstringWhy the units are out of sale (max 500 characters).
guest{ firstName?, lastName, email?, phone? }`hold` only, and required there: who the units are kept for. Cloudbeds needs the guest's email and phone.
holdHoursinteger`hold` only, and required there: how long the units are kept, 1 to 8760 hours.
AI