> For the complete documentation index, see [llms.txt](https://docs.eximee.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.eximee.com/documentation/documentation-en/budowanie-aplikacji/aplikacja-biznesowa/wersjonowanie/wersja-robocza-elementu.md).

# Item draft version

The draft version mechanism allows you to safely edit an application element (such as a form, process, or script) without affecting the published versions.

### **Creating a draft version**

Switching to edit mode causes the following automatic actions:

* blocking editing for other users within the given **main version** (e.g. `1.*`),
* creating **a draft version** based on the selected version (e.g. `1.8`).

{% hint style="info" %}
For each main version, there can be only **one active draft copy**. If one already exists, access to editing will be blocked until it is saved or discarded.
{% endhint %}

***

### **Working with a draft copy**

While editing, changes are saved automatically:

* **every 30 seconds**,
* and **when leaving the editor** (e.g. closing the tab, switching to another view).

The top bar of the editor displays **the time since the last save** on the server. When the editor is reopened, the draft is restored from the last saved state.

<figure><img src="https://2112972046-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2CssJT0zIo4SJQLbSZ6l%2Fuploads%2Fjgip2i85Aco5x8D9QjCm%2Fimage.png?alt=media&amp;token=39bb5eb2-5a01-48dc-a0cb-2368179a8e2e" alt=""><figcaption><p align="center"><em><strong>Figure 1.</strong> Draft copy information</em></p></figcaption></figure>

Changes are approved by clicking the **Save as new version**button, which causes:

* all changes to be saved to the repository,
* creation of a new major or minor version,
* release of the editing lock.

***

### **Discarding a draft version**

The author of the draft version can at any time отказаться from the saved changes by selecting the option from the left sidebar menu **Discard draft copy**.

This operation:

* deletes the current draft version,
* restores editing access for the given main version to other users.

<figure><img src="https://2112972046-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2CssJT0zIo4SJQLbSZ6l%2Fuploads%2F7FCJLL7jKicGtUDRz2CQ%2Fimage.png?alt=media&amp;token=70d8df53-5072-4677-a03d-9da005f161a9" alt=""><figcaption><p align="center"><em><strong>Figure 2.</strong> Menu with the "Discard draft copy" option</em></p></figcaption></figure>

***

### **Unlocking element editing**

If the draft version was created by another user and editing is locked, it is possible to **force unlock editing** using the option **Unlock element editing** (also in the menu on the left).

<figure><img src="https://2112972046-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2CssJT0zIo4SJQLbSZ6l%2Fuploads%2Fo7p9u0bf66C5hxdMQYix%2Fimage.png?alt=media&amp;token=476f34ec-9759-4267-9028-149eb7526ff4" alt=""><figcaption><p align="center"><em><strong>Figure 3.</strong> Menu with the "Unlock artifact editing" option</em></p></figcaption></figure>

{% hint style="warning" %}
*Note: this operation is irreversible - all unsaved changes in the draft version will be permanently deleted.*
{% endhint %}

<figure><img src="https://2112972046-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2CssJT0zIo4SJQLbSZ6l%2Fuploads%2FifWR8mz2R8pSO5zEbzGo%2Fimage.png?alt=media&amp;token=37cecfb4-3472-49ff-8af4-8849bc7e19a6" alt=""><figcaption><p align="center"><em><strong>Figure 4.</strong> Confirmation popup for unlocking the artifact</em></p></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.eximee.com/documentation/documentation-en/budowanie-aplikacji/aplikacja-biznesowa/wersjonowanie/wersja-robocza-elementu.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
