Skip to content
中文

Restore saved version

POST /cut/v1/versions/{version_id}:restore

Replace current editing content with a saved project snapshot selected from projects.versions.list. The restore commits a new transaction and revision while preserving the saved version for future use. Inspect the returned summary and timeline before further editing; a response revision conflict can follow a committed restore, so retrieve current state before retrying.

Support: supported

Parameters

NameLocationTypeRequiredDescription
version_idpathstringtrueVersion identifier returned by its create or list operation; use the id, not a display name.

Response

HTTP 200

Requested resource or operation result; use its revision when preparing a guarded edit.

application/json

Name Type Description
revision integer Committed project revision from retrieve, state, timeline or execute; increases after each successful write.
actor string Identity that restored the version, as human:<id> or agent:<id>.
ops array<object> Applied operation records; time values are seconds and other fields depend on op.
ops[].op string Operation name such as insert, update, delete, split, trim, move, track_add or settings_update.
summary object Counts and duration changes committed by an editing transaction.
summary.added integer Number of clips added by the transaction.
summary.removed integer Number of clips removed by the transaction.
summary.modified integer Number of clips changed by the transaction.
summary.duration_before number Project duration before the transaction. In seconds, not frames or microseconds.
summary.duration_after number Project duration after the transaction. In seconds, not frames or microseconds.
summary.lines array<string> Human-readable descriptions of the committed edits.
time string ISO 8601 timestamp when this transaction committed.