New frontmatter'd docs:
- download (ServeFile — raw bytes, family-lens enforced; corrects the old
download doc's claim that no download route is registered: ServeFile IS
routed, DownloadBook is the dead code)
- set_audio_speed (speed range 0.25-4.0, NaN/Inf rejected)
- rescan (abridged example over the full 70+-column row; write-after-success
guarantee noted)
- purge-archived (destructive, admin), unarchive (204), merge (SHA-256
precondition, per-user collisions keep active copy)
- facets (two modes: facet+values, field autocomplete counts)
- filter_count (family lens)
Registry: RawMessage pins for map/abridged responses; Schema{} for non-JSON
body routes (download = raw bytes; unarchive = 204). Audit now:
missing docs down to ~55 (from 112), 0 orphans.
576 B
576 B
method, path, auth, area
| method | path | auth | area |
|---|---|---|---|
| POST | /api/media-items/:id/unarchive | jwt+admin | media-items |
Unarchive Media Item
Admin only. Clears the archive flag from a media item so it re-enters the active library. Success is 204 No Content — no body.
Errors
| Status | Body | When |
|---|---|---|
| 400 | {"error": "invalid media item id"} |
malformed id |
| 403 | {"error": "admin access required"} |
not an admin |
| 500 | {"error": "..."} |
unexpected server error |