dataset_version_restore
Restore a dataset to a prior saved version using its ref and version number, replacing current images, labels, and splits with that snapshot.
Instructions
Restore a dataset to a previously saved version by slug, owner/slug, or a ul://owner/datasets/slug URI, and an integer version number. Versions are listed via datasets_get (the versions array, already returned unprojected). This REPLACES the dataset's current images, labels, and splits with that snapshot outright: anything done since that version, including un-versioned manual annotation work, is discarded. Ships ungated anyway, since it is the undo tool — an auto-annotate run snapshots a version before labelling, so restoring that version undoes the run exactly, and a mistaken restore is itself recoverable by restoring a later version. Restore also reassigns image IDs: a pre-restore image ID still resolves afterward but returns an empty label array rather than a 404, so callers must re-list images (for example with dataset_images_list) after a restore instead of reusing held IDs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dataset | Yes | Dataset ref by slug, owner/slug, or a ul://owner/datasets/slug URI. | |
| version | Yes | Version number to restore, as listed in datasets_get's versions array. |