Latest Records Whole Lineage

Step 6: The Whole Lineage

GET /ingestions/assets/latest/{{latest_records_row_id}}/history โ€” every record for the location, uncapped, the current one leading.

Why not just follow links.superseded

links.superseded is a filter query. It returns the same group, but nothing in the response says which row is current โ€” you would have to re-derive it, and re-deriving currency is how two of our numbers stop agreeing.

/history returns the group ordered by the stored stamp, with is_live on each entry and the monitoring_end that decided the outcome. Position and flag come from one source, so they cannot disagree.

A stale id still answers

Pass the superseded record's row_id instead and you get the same history back. An id from an old export does not 404 just because a later upload replaced the record it names.

Next Step

โ†’ Step 7: Metrics For The Current Record โ€” attach a measurement to the row.