# ing.opn.booking.holdSlot

> Holds a time for a few minutes while the guest fills in the form, so nobody else takes it.

- Kind: procedure
- Authority: booking.opn.ing
- Lexicon: 1
- Published by [opn.ing](https://lexicon.garden/identity/did:plc:fd7yovynbzbli5i7m6tu76cl), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:fd7yovynbzbli5i7m6tu76cl/ing.opn.booking.holdSlot)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:fd7yovynbzbli5i7m6tu76cl/ing.opn.booking.holdSlot/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:fd7yovynbzbli5i7m6tu76cl/ing.opn.booking.holdSlot/analytics)

## Procedure (`ing.opn.booking.holdSlot`)

Type: procedure · POST

### Input (application/json)

- `duration` (integer)
  - Constraints: minimum: 1, maximum: 1440
- `eventType` (string · at-uri, required)
- `holder` (string): An earlier hold to move, so one guest keeps one hold.
  - Constraints: maxLength: 64
- `start` (string · datetime, required)

### Output (application/json)

- `expiresAt` (string · datetime, required)
- `holder` (string, required)
  - Constraints: maxLength: 64

### Errors

- `EventTypeNotFound`: No description in schema.
- `SlotUnavailable`: No description in schema.
- `DurationNotOffered`: No description in schema.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Holds a time for a few minutes while the guest fills in the form, so nobody else takes it.",
      "errors": [
        {
          "name": "EventTypeNotFound"
        },
        {
          "name": "SlotUnavailable"
        },
        {
          "name": "DurationNotOffered"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "duration": {
              "maximum": 1440,
              "minimum": 1,
              "type": "integer"
            },
            "eventType": {
              "format": "at-uri",
              "type": "string"
            },
            "holder": {
              "description": "An earlier hold to move, so one guest keeps one hold.",
              "maxLength": 64,
              "type": "string"
            },
            "start": {
              "format": "datetime",
              "type": "string"
            }
          },
          "required": [
            "eventType",
            "start"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "expiresAt": {
              "format": "datetime",
              "type": "string"
            },
            "holder": {
              "maxLength": 64,
              "type": "string"
            }
          },
          "required": [
            "holder",
            "expiresAt"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "ing.opn.booking.holdSlot",
  "lexicon": 1
}
```
