Add data / ATH documentation
ath correct
Replace a record's complete data and retain its prior revision.
Usage
$ath correct <record-id> --revision 2 --data '<complete-data-json>' --jsonWhat it does
Keeps the stable record ID and complete earlier revisions. The expected revision prevents a stale preview from overwriting a newer change.
Review before writing
Read the current record and revision, preview a complete replacement, then repeat with --yes. Attachments can be added while correcting an athlete report or nutrition entry.
$ath records show <record-id> --history --json$ath correct <record-id> --revision 2 --data '<complete-data-json>' --yes