# Hold the nights of a stay for a few minutes

`POST /lodging/holds` · Rivier · bookings

Hold the nights of a stay for a few minutes. The hold is a reservation in the held state and releases itself.

- Scope: bookings:write
- Mcp: rivier_lodging_hold
- Graphql: Mutation.holdStay
- Sdk: bookings.stay.hold
- Cli: bookings stay hold
- Events: bookings.reservation.held

## Parameters

- `dryRun` (query), string

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "propertyId": {
      "type": "string",
      "format": "uuid"
    },
    "roomTypeId": {
      "type": "string",
      "format": "uuid"
    },
    "ratePlanId": {
      "type": "string",
      "format": "uuid"
    },
    "arrival": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    },
    "departure": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    },
    "adults": {
      "type": "integer",
      "minimum": 1,
      "maximum": 20,
      "default": 2
    },
    "children": {
      "type": "integer",
      "minimum": 0,
      "maximum": 20,
      "default": 0
    },
    "infants": {
      "type": "integer",
      "minimum": 0,
      "maximum": 10,
      "default": 0
    },
    "promoCode": {
      "type": "string",
      "maxLength": 24
    },
    "extras": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "extraId": {
            "type": "string",
            "format": "uuid"
          },
          "quantity": {
            "type": "integer",
            "minimum": 1,
            "maximum": 50,
            "default": 1
          }
        },
        "required": [
          "extraId"
        ],
        "additionalProperties": false
      },
      "maxItems": 20,
      "default": []
    },
    "quote": {
      "type": "string",
      "maxLength": 4000
    },
    "idempotencyKey": {
      "type": "string",
      "minLength": 1,
      "maxLength": 120
    }
  },
  "required": [
    "propertyId",
    "roomTypeId",
    "ratePlanId",
    "arrival",
    "departure",
    "idempotencyKey"
  ],
  "additionalProperties": false
}
```

## Responses

- `201`: Success
- `400`: The request was malformed
- `401`: No valid credential
- `403`: The credential lacks the scope, origin or address
- `429`: Over the key's rate limit; see Retry-After

## Example

```sh
curl -X POST 'https://api.rivier.ai/lodging/holds' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "propertyId": "string",
  "roomTypeId": "string",
  "ratePlanId": "string",
  "arrival": "string",
  "departure": "string",
  "idempotencyKey": "string"
}'
```
