---
title: "Version History"
icon: 'clock'
description: "Learn how flow versioning works in Activepieces"
---

Activepieces keeps track of all published flows and their versions. Here’s how it works:

1. You can edit a flow as many times as you want in **draft** mode.
2. Once you're done with your changes, you can publish it.
3. The published version will be locked and uneditable.
4. If you try to edit a published flow, Activepieces will create a new **draft** if there is none and copy the **published** version to the new version.

This means you can always go back to a previous version and edit the flow in draft mode without affecting the published version.

## Go back to an older version

1. Open the flow, click the arrow next to its name, and choose **Versions**.
2. Open the menu of the version you want and choose **Use as Draft**.
3. Click **Overwrite**. The older version replaces your current draft, and this cannot be undone.

The live flow keeps running its published version. Publish the draft to make the older version live.

![Flow History](/resources/screenshots/flow-history.png)

In the version list, the yellow dot marks the **draft** and the green dot marks the **published** version.
