> For the complete documentation index, see [llms.txt](https://docs.struct.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.struct.com/tutorials/guides/how-to-use-drafts/how-to-create-and-edit-a-draft.md). Agents can also search and read this documentation through its [MCP server](https://docs.struct.com/~gitbook/mcp).

# How to create and edit a draft

A guide to creating a draft and editing a product without changing its current data

A draft lets you change a product, variant group or variant in the normal editor while the current data stays as it is. This guide shows how to create a draft, edit it and switch between drafts.

{% hint style="info" %}
**Before you start**

You need the **Edit drafts** permission.
{% endhint %}

## How to create a draft

1. Open the product, variant group or variant.
2. Click the drafts button in the header, next to the bookmark and watch buttons. The number on the button shows how many drafts the product has.
3. Click **New draft**.
4. Give the draft a name that says what it is for, for example "Autumn campaign copy".
5. Click **Create draft**.

![The New draft dialog](https://2141378775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuUonpFWM7AJ0xVVXV1tr%2Fuploads%2FDFQDuJNTxv7Jfvo1gUl7%2Fdrafts-create-dialog.png?alt=media)

The editor now shows the draft. A purple banner above the tabs shows its name and status.

![The draft banner above the editor tabs](https://2141378775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuUonpFWM7AJ0xVVXV1tr%2Fuploads%2FDlZYmRybefjfoqXMwo6C%2Fdrafts-editing-banner.png?alt=media)

## How to edit a draft

Edit the values as you normally would and click **Save**. The values are saved to the draft, and the current data is unchanged.

Every field you change is marked **Modified in draft**. The current value is shown below the field, crossed out, so you can see what you are replacing.

![A field modified in a draft, with the current value below it](https://2141378775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuUonpFWM7AJ0xVVXV1tr%2Fuploads%2FEhCsYLvSCsuGqW1kqbOm%2Fdrafts-modified-field.png?alt=media)

The banner counts how many fields the draft changes. You can also change categories on the **Classifications** tab. Products can change their primary category in a draft. Variant groups and variants can only be added to or removed from categories.

{% hint style="info" %}
Translation mode is not available while you view a draft. Leave the draft first.
{% endhint %}

## How to switch between drafts

Click the drafts button to see every draft on the product, its status and how many fields it changes. The draft you are viewing is ticked.

![The drafts menu with two drafts](https://2141378775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuUonpFWM7AJ0xVVXV1tr%2Fuploads%2FMCV3Zmp7M0idMRDbqYOj%2Fdrafts-switcher.png?alt=media)

* Click a draft to view and edit it.
* Click **Exit to current data**, or the cross at the end of the banner, to go back to the current data.

If you have unsaved changes, you are asked before they are discarded.

## Drafts on variant groups and variants

Variant groups and variants have their own drafts, created the same way from their own editor. When you send a product draft for review, you can include your drafts on its variant groups and variants. See [How to send a draft for review](https://docs.struct.com/tutorials/guides/how-to-use-drafts/how-to-send-a-draft-for-review.md).

## How to delete a draft

Click **Delete** in the banner and confirm. The changes in the draft are deleted. The current data is not affected.


---

# 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.struct.com/tutorials/guides/how-to-use-drafts/how-to-create-and-edit-a-draft.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.
