---
description: The two event types, how their schedules are created and edited, and the schedule rules that differ between them.
---

# Manual and API events

When you create an event you choose its type, and the type cannot be changed afterwards. A
**Manual event** is maintained in Onlit itself; an **API event** mirrors an external
schedule source. The choice decides where rooms and items come from, how your edits are
stored, and which schedule rules apply.

## At a glance

| | Manual event | API event |
| --- | --- | --- |
| Rooms and items come from | An [Excel import](../events/excel_import.md), or rooms and items created in the app | A [data integration](../integrations/index.md) polled on the event's API Polling Interval, plus rooms and items created in the app |
| Source of truth | Onlit's database | The external source |
| Items created in the app | The same as imported ones | **Custom Scheduled Items**, which imports never delete |
| Editing an item's JSON | Changes the item's single JSON Data object | Stored as **JSON Override Data**, re-merged with every sync |
| Overlapping items in a room | Not allowed | Allowed; disable the items you do not want |
| Enable / disable items | Not available — edit or delete instead | Available, to handle duplicate or wrong source data |
| Excel import and export | Available | Not available |

## Manual events

Onlit's database is the source of truth, so the app keeps the schedule consistent:

- Enabled items in the same room must not overlap.
- Items cannot be enabled or disabled. Edit their times or delete them instead.
- When you change one item's Display Time and the new time only crosses into the item
  immediately before or after it, the Display Time editor offers **Adjust neighboring item
  times in this save** and moves that neighbor's boundary in the same save. Larger
  rewrites that touch several items are better done with an Excel import, so the whole
  schedule is validated together.
- **Reset to Render** for a room, the whole event or a Bulk Room Updates selection is
  rejected as a whole, with nothing changed, if restoring any item's render time would make
  two enabled items overlap. Fix the conflicting items first, then reset again.
- There is only one JSON object per item. Editing it changes that object directly, and
  **Reset to Render** restores the Display Time from the JSON times.

The [Excel import](../events/excel_import.md) is the normal way to load and maintain a Manual
event's schedule; an [export](../events/excel_export.md) gives you the current rooms and items
back as a workbook. How overlaps are prevented, and reported in API events, is on
[Schedule conflicts](../events/schedule_conflicts.md).

## API events

The external source is the source of truth. The event's integration is polled on its
**API Polling Interval**, and each sync adds, updates and removes rooms and items to match
the source:

- Imported items may overlap, and **Reset to Render** may keep or create overlaps, because
  the source decides the schedule. Use **enable / disable** on items to hide duplicates or
  wrong entries without touching the source.
- Edits you make to an item's JSON in the app are stored field by field as **JSON Override
  Data**. Fields you changed, added or deleted keep your intent across syncs; fields you
  never touched keep updating from the source. The original import stays in JSON Data, and
  you can reset the item to it at any time. See
  [Editing scheduled item JSON](../events/editing_item_json.md).
- Each item's Display Start and Display End either *follows* the source's time or is
  *fixed* by you. See [Display time, render time and room offset](../events/display_time_ownership.md).
- Rooms and items you create in the app are **Custom Rooms** and **Custom Scheduled
  Items**. Imports never delete or rename them.
- Rooms are matched between syncs by the event's room identity mode (room code or room
  title), fixed when the event is created. See
  [Room identity and renames](../integrations/room_identity.md).

How syncing, API health and alert emails work is described under
[Data integrations](../integrations/index.md).

## Related

- [Concepts and terminology](concepts.md)
- [Excel import](../events/excel_import.md)
- [Data integrations](../integrations/index.md) — connecting a source, syncing and API health
- [Display time, render time and room offset](../events/display_time_ownership.md)
