These pages describe the Training API on
dev, where authenticated creation, editing, downloads, revert, and website brand lookup have been tested live.
Production availability is not confirmed. Your API service and worker must both run the updated code.
See Testing and availability.POST {API_BASE}/v1/edits/{edit_id}/revert
No request body is required. The caller must have access to both the edit and its video within the key’s workspace.
Preconditions
- The edit must have status
complete. Failed, unfinished, and already reverted edits cannot be reverted. - No other edit may be active or queued on the video.
- Newer eligible external edits must be reverted first.
- The top planner-history snapshot must belong to this edit. An intervening app edit can prevent a safe revert.
Response
HTTP 200 returns the edit status shape, withstatus: "reverted", is_complete: true, and result.revert_diff containing changed_scene_numbers, added_scene_numbers, and deleted_scene_numbers.
The result retains fields from the original edit. Its original link and video_synced are not confirmation that a reverted combined file has finished rebuilding. The response confirms snapshot restoration; inspect the restored video in the dashboard to verify the final media.