Undo Change
undo_changeRevert a specific Gramps Web transaction by restoring updated and deleted records and removing added ones. Preview effects and conflicts with dryRun before confirming the undo.
Instructions
Undo one transaction listed by get_recent_changes: records it added are deleted, records it updated get their earlier version back, and records it deleted are restored with the same handles and Gramps IDs. The undo is one new all-or-nothing transaction, which get_recent_changes lists and undo_change can revert in turn. Call it only after the user confirmed that transaction; dryRun lists the effects and conflicts without changing anything. A conflict stops the undo with nothing changed: a record changed again later, a record to be deleted that other records now link to, or an earlier version linking a record that no longer exists. Undo the later transactions first, newest first, or pass force=true after a separate confirmation. Clients that support it also show the user a confirmation dialog before undoing; action declined or cancelled means the user said no. Returns action undone, checked, refused or pending, the records affected and the undo's own transaction number.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | true undoes despite conflicts, overwriting later changes to these records and possibly leaving links dangling; only after a separate confirmation (default false). | |
| dryRun | No | true only lists what the undo would change and its conflicts, writing nothing (default false). | |
| transactionId | Yes | The transaction to undo: the number shown as [transaction: N] by get_recent_changes. |