# ing.opn.booking.reschedule

> Moves a booking to another time. The old booking is cancelled and points to the new one.

- 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.reschedule)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:fd7yovynbzbli5i7m6tu76cl/ing.opn.booking.reschedule/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:fd7yovynbzbli5i7m6tu76cl/ing.opn.booking.reschedule/analytics)

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

Type: procedure · POST

### Input (application/json)

- `holder` (string)
  - Constraints: maxLength: 64
- `reason` (string)
  - Constraints: maxLength: 2000
- `start` (string · datetime, required)
- `token` (string): The booking's manage token, from the email sent to its guest. Not needed by the host.
  - Constraints: maxLength: 128
- `uid` (string, required): The booking's id.
  - Constraints: maxLength: 64

### Output (application/json)

- `booking` (ref, required)
  - Reference: `ing.opn.booking.defs#bookingView`
- `token` (string, required): The booking's manage token, from the email sent to its guest. Not needed by the host.
  - Constraints: maxLength: 128

### Errors

- `BookingNotFound`: No description in schema.
- `BookingNotActive`: No description in schema.
- `ReschedulingDisabled`: No description in schema.
- `SlotUnavailable`: No description in schema.
- `EventTypeNotFound`: No description in schema.
- `ScheduleNotFound`: No description in schema.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Moves a booking to another time. The old booking is cancelled and points to the new one.",
      "errors": [
        {
          "name": "BookingNotFound"
        },
        {
          "name": "BookingNotActive"
        },
        {
          "name": "ReschedulingDisabled"
        },
        {
          "name": "SlotUnavailable"
        },
        {
          "name": "EventTypeNotFound"
        },
        {
          "name": "ScheduleNotFound"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "holder": {
              "maxLength": 64,
              "type": "string"
            },
            "reason": {
              "maxLength": 2000,
              "type": "string"
            },
            "start": {
              "format": "datetime",
              "type": "string"
            },
            "token": {
              "description": "The booking's manage token, from the email sent to its guest. Not needed by the host.",
              "maxLength": 128,
              "type": "string"
            },
            "uid": {
              "description": "The booking's id.",
              "maxLength": 64,
              "type": "string"
            }
          },
          "required": [
            "uid",
            "start"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "booking": {
              "ref": "ing.opn.booking.defs#bookingView",
              "type": "ref"
            },
            "token": {
              "description": "The booking's manage token, from the email sent to its guest. Not needed by the host.",
              "maxLength": 128,
              "type": "string"
            }
          },
          "required": [
            "booking",
            "token"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "ing.opn.booking.reschedule",
  "lexicon": 1
}
```
