docs: phase 1b bench-checked on UM20147 -- events by serial for both series

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
This commit is contained in:
serversdownandClaude Opus 5.5 committed 2026-10-21 17:11:24 -04:00
1 parent 39e0d312e5
commit 89a2a493fb
3 files changed
+20 -1

No files matched your search

+2
View File
@@ -179,6 +179,8 @@ via a thread-safe `_LiveCache` (plain Python dict + `threading.Lock`):
| `POST` | `/device/call_home` | Reads, patches specified fields, writes back to device |
| `GET` | `/device/settings` | Recording settings in the shared model, either series; serial required; never cached |
| `POST` | `/device/hangup` | Releases a held Series-4 line now; `{"hung_up": bool}` |
| `GET` | `/device/events?serial=` | Lists a unit's events, either series, each with an opaque `event_id` (`serial:key:timestamp`). A MiniMate list reads headers only (no bulk download) |
| `POST` | `/device/events/download?serial=&event_id=` | Downloads one event, checks it, and stores it in SFM's database; returns `db_event_id` (file at `GET /db/events/{db_event_id}/blastware_file`). A stale `event_id` (unit erased or wrapped since the list) or one from another unit gets **409**, with no download. Re-downloading refreshes the stored row (same `db_event_id`, `inserted: false`). The unit is busy for the whole download; other requests to it get 423 |
**Cache bypass** — All cached endpoints accept `?force=true` to skip the cache and
force a fresh read from the device.