> ## Documentation Index
> Fetch the complete documentation index at: https://help.csvbox.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Edit an importer as a draft

> Change a live CSVbox importer safely: edit it as a draft, test the changes with preview imports, then publish them or discard the draft.

Drafts let you change a live importer without affecting the people using it. You edit a private copy, test it with real preview imports, and then publish all your changes at once, or discard them. Drafts are available on every plan.

## Start a draft

Open the importer and click **Edit as draft** in the header. If a draft already exists, the button says **Continue draft**.

While you're in the draft, a banner shows **You are editing a draft. Changes are not live until you publish.** Every change you make on any tab, including columns, import steps, display, security, destination and notification settings, is saved to the draft. The live importer keeps working with its current settings until you publish.

In the draft:

* You can't rename the importer.
* The code snippet area shows a **Draft preview key** instead of embed code. The live importer's license key and embed code don't change when you publish.
* The importer list shows a **Draft in progress** badge on the importer.
* Click **Back to live sheet** to return to the live importer.

Each importer has one draft at a time. Team members who open the draft all edit the same copy.

## Preview your changes

Click **Preview** in the draft banner. The importer opens in a new tab with the draft's settings and a banner saying you're testing unpublished changes.

Only signed-in users who can edit the importer can open the preview.

Preview imports are real imports:

* They use the **draft's** settings and destinations, so data is delivered to the destination configured in the draft.
* They're listed on the [Imports](https://help.csvbox.io/dashboard-settings/imports.md) page under the live importer, with a **Draft** badge.
* They count toward your import quota.
* They don't send [import email alerts](https://help.csvbox.io/sheet-settings/notifications.md) or the importer's import-complete webhook.

> [!TIP]
>
> To keep test data out of production, point the draft's destination at a test endpoint, or check the `is_preview` field in your code.

### The `is_preview` field

The [API/Webhook](https://help.csvbox.io/destinations/api-webhook.md), [Zapier](https://help.csvbox.io/destinations/zapier.md), [n8n](https://help.csvbox.io/destinations/n8n.md) and [Pipedream](https://help.csvbox.io/destinations/pipedream.md) destinations include an `is_preview` field next to `import_id` in each payload:

```json theme={"dark"}
{
  "is_preview": true
}
```

It's `true` for preview imports and `false` for imports into the live importer. In multipart payloads, the value is the text `true` or `false`.

## Publish the draft

Click **Publish** in the draft banner and confirm. The draft's configuration replaces the live importer's configuration in one step, and the draft is removed. The license key, import history and import count stay as they are.

After publishing, every new import uses the new settings.

> [!WARNING]
>
> If someone changed the live importer after you created the draft, the banner says so. Publishing overwrites those changes. There's no version history or undo, so review the live importer first.

## Discard the draft

Click **Discard draft** and confirm. The draft is deleted permanently. The live importer isn't affected.

Drafts don't expire. A draft stays until you publish or discard it, or until the live importer is deleted.

## Who can use drafts

Users who can edit importers (Super Admin, Admin and Tech) can start, preview, publish and discard drafts. See [Teams](https://help.csvbox.io/account/teams.md).

Drafts are only available in the dashboard. The [Sheet API](https://help.csvbox.io/advanced-installation/sheet-api.md) always works with the live importer.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.