{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Tells the AppView an event type now lives under a new record key, after its owner wrote the new record and before deleting the old one. Bookings and private location details move to the new record, and the old booking link redirects to the new one. Only the event type's owner can call it.",
      "errors": [
        {
          "name": "EventTypeNotFound"
        },
        {
          "name": "NotOwner"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "from": {
              "format": "at-uri",
              "type": "string"
            },
            "to": {
              "format": "at-uri",
              "type": "string"
            }
          },
          "required": [
            "from",
            "to"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "bookings": {
              "description": "How many bookings moved.",
              "minimum": 0,
              "type": "integer"
            }
          },
          "required": [
            "bookings"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "ing.opn.booking.moveEventType",
  "lexicon": 1
}
