Block

Creates a block

<br>You must have at least one of these scopes: 'blocks.create, reservations.manage'.

post/booking/v1/blocks

Headers

Idempotency-Keystring

Unique key for safely retrying requests without accidentally performing the same operation twice. We'll always send back the same response for requests made with the same key, and keys can't be reused with different request parameters. Keys expire after 24 hours.

Request body

groupIdstring required

ID of the group that reserved the block

ratePlanIdstring required

The rate plan

fromstring required

Start date and time from which the inventory will be blocked<br />Specify either a pure date or a date and time (without fractional second part) in UTC or with UTC offset as defined in <a href="https://en.wikipedia.org/wiki/ISO_8601">ISO8601:2004</a>

tostring required

End date and time until which the inventory will be blocked. Cannot be more than 5 years after the start date.<br />Specify either a pure date or a date and time (without fractional second part) in UTC or with UTC offset as defined in <a href="https://en.wikipedia.org/wiki/ISO_8601">ISO8601:2004</a>

blockedUnitsinteger nullable

Number of units to block for the defined time period

promoCodestring nullable

The promo code associated with a certain special offer

corporateCodestring nullable

The corporate code associated with a certain special offer

marketSegmentIdstring nullable

The market segment Id for this block. Must be a valid market segment ID defined at the property level. Picked-up reservations will inherit this value by default

Example request

{
  "groupId": "XPGMSXGF",
  "ratePlanId": "MUC-NONREF-SGL",
  "from": "2026-09-06",
  "to": "2026-09-09",
  "grossDailyRate": {
    "amount": 160,
    "currency": "EUR"
  },
  "timeSlices": [
    {
      "blockedUnits": 3
    },
    {
      "blockedUnits": 0
    },
    {
      "blockedUnits": 7
    }
  ],
  "marketSegmentId": "BUSR"
}

Response

The block was created successfully.

idstring required

Block id

Example response

{
  "id": "MUC-HSGTDG"
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.