# Source: https://www.activepieces.com/docs/flows/versioning.md

> ## Documentation Index
> Fetch the complete documentation index at: https://www.activepieces.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Version History

> 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.

<img src="https://mintcdn.com/activepieces/31xTG5PE4V5GpSM9/resources/screenshots/flow-history.png?fit=max&auto=format&n=31xTG5PE4V5GpSM9&q=85&s=d0082e4324c9eeed7befe551cfc4f527" alt="Flow History" data-og-width="1415" width="1415" data-og-height="892" height="892" data-path="resources/screenshots/flow-history.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/activepieces/31xTG5PE4V5GpSM9/resources/screenshots/flow-history.png?w=280&fit=max&auto=format&n=31xTG5PE4V5GpSM9&q=85&s=a85ea6dd0d2649acca7f66dad9fff05d 280w, https://mintcdn.com/activepieces/31xTG5PE4V5GpSM9/resources/screenshots/flow-history.png?w=560&fit=max&auto=format&n=31xTG5PE4V5GpSM9&q=85&s=a92599c8605300c805b8afd70bf8ab0c 560w, https://mintcdn.com/activepieces/31xTG5PE4V5GpSM9/resources/screenshots/flow-history.png?w=840&fit=max&auto=format&n=31xTG5PE4V5GpSM9&q=85&s=5aa65bf1814b20e30a7b0715fcafb9ad 840w, https://mintcdn.com/activepieces/31xTG5PE4V5GpSM9/resources/screenshots/flow-history.png?w=1100&fit=max&auto=format&n=31xTG5PE4V5GpSM9&q=85&s=b594ac716166fce3b984e4e1f670a301 1100w, https://mintcdn.com/activepieces/31xTG5PE4V5GpSM9/resources/screenshots/flow-history.png?w=1650&fit=max&auto=format&n=31xTG5PE4V5GpSM9&q=85&s=11c06fb82b538afe2773e91ac97f3742 1650w, https://mintcdn.com/activepieces/31xTG5PE4V5GpSM9/resources/screenshots/flow-history.png?w=2500&fit=max&auto=format&n=31xTG5PE4V5GpSM9&q=85&s=24de78e342ce7672bc6ccb29c352940c 2500w" />

As you can see in the following screenshot, the yellow dot refers to DRAFT and the green dot refers to PUBLISHED.