# ing.opn.booking.moveEventType

> 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.

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

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

Type: procedure · POST

### Input (application/json)

- `from` (string · at-uri, required)
- `to` (string · at-uri, required)

### Output (application/json)

- `bookings` (integer, required): How many bookings moved.
  - Constraints: minimum: 0

### Errors

- `EventTypeNotFound`: No description in schema.
- `NotOwner`: No description in schema.

## Schema

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