app_restore_checkpoint
Restores a project's files from a checkpoint by overwriting design files with a snapshot. Use this to revert changes, with an option to delete files created after the checkpoint.
Instructions
Restore the focused project's files from a checkpoint.
Overwrites design files with the snapshot contents. Close the project
in Altium (or expect a reload prompt) before restoring, since Altium
holds documents open. With prune_added=True this is a true revert:
files created after the checkpoint are deleted; the default leaves
newer files untouched.
Args:
checkpoint_id: id from app_list_checkpoints.
prune_added: delete files absent at checkpoint time (default False).
Returns: {restored, removed, missing_blobs}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prune_added | No | ||
| checkpoint_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||