{
  "$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
}
