> For the complete documentation index, see [llms.txt](https://docs.octoxlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.octoxlabs.com/documentation/use-octoxlabs/settings/product-settings/export-import.md).

# Export/Import

Export dashboards, queries, workflows, profiles, policies, tags, groups, users, scheduled reports and notes to a JSON file, and import them into another environment.

**Export / Import** moves configuration from one OctoXLabs environment to another, for example from a test platform to production, or from one company to another. You export one kind of item at a time to a JSON file, and you import that file on the target platform. Use it to promote a dashboard or a saved query you have tested, to back up configuration objects, or to seed a new environment.

This page moves configuration, not asset data. It does not copy your inventories. To back up or migrate the whole platform, see Backup, restore and migrate.

### Before you begin

* Applies to: OctoXLabs 6.0.0 and later. Users export and import needs 6.7.0, and notes and scheduled reports need 6.8.0. From 6.9.0 only users with the Admin role can use this page.
* Required permission to open the page, export and import: `users.export_import_data`.

### Open the page

Go to **Settings** > **Product Settings** > **Export / Import**. The page has two tabs: **Export** and **Import**.

### Export settings

| Setting                     | Type            | Default | Description                                                                                                                                                                                |
| --------------------------- | --------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **Select Module to Export** | Selection       | Empty   | What to export: **Dashboards**, **Queries**, **Workflows**, **Profiles**, **Policies**, **Tags**, **Permission Groups**, **Users**, **Scheduled Reports** or **Notes**. One kind per file. |
| **Enable Tag Export**       | Checkbox        | Off     | Includes the tags attached to the exported items. Shown for every module except **Permission Groups** and **Notes**.                                                                       |
| **Include Asset IDs**       | Checkbox        | Off     | Includes the IDs of the assets that carry each tag. Available only when **Enable Tag Export** is on.                                                                                       |
| **Full Export**             | Checkbox        | Off     | Exports every item of the chosen module. It is always on for **Notes**, which cannot be picked one by one.                                                                                 |
| **Items to Export**         | Search and list | Empty   | Shown when **Full Export** is off. Search for an item, add it, and repeat. The **Selected Items** list shows what will be exported.                                                        |

### Export items

{% stepper %}
{% step %}

#### Choose the module

On the **Export** tab, pick the kind of item in **Select Module to Export**.
{% endstep %}

{% step %}

#### Choose the items

Select **Full Export** to take everything. Otherwise search for each item under **Items to Export** and add it. If you want tags, select **Enable Tag Export**.
{% endstep %}

{% step %}

#### Export

Select **Export**. The browser downloads a JSON file named like `queries-2026-10-26-1a2b3c4d.json`, and the console shows **Export completed successfully**.
{% endstep %}
{% endstepper %}

The export is recorded in the activity log. See User Activities.

### Import a file

{% stepper %}
{% step %}

#### Open the Import tab

Go to **Settings** > **Product Settings** > **Export / Import** and select **Import**.
{% endstep %}

{% step %}

#### Choose the file

Select the JSON file you exported, in the **File** field. Large files are uploaded in parts.
{% endstep %}

{% step %}

#### Import

Select **Import**. The platform processes the file in the background and shows the progress. When it finishes, the console shows **Import completed successfully**.
{% endstep %}
{% endstepper %}

### How an import treats existing items

The import creates items from the file one by one. A single item that fails is counted and skipped, and the others continue. The first 50 error messages are kept, each starting with the position of the item in the file, for example `Row 3: ...`.

| Module                | If the item already exists                                                                                                                                 |
| --------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Queries**           | A query with the same ID is updated with the file's values. A query that the exported query uses is imported first.                                        |
| **Dashboards**        | A new dashboard is created each time, with its charts and widgets. See Chart and widget reference for the file layout.                                     |
| **Policies**          | A policy with the same name (any letter case) is kept as it is.                                                                                            |
| **Tags**              | A tag with the same name for the same inventory is kept as it is.                                                                                          |
| **Permission Groups** | A group with the same name is kept as it is. Only permissions that can be given to groups are applied. Platform management permissions are never imported. |
| **Users**             | A user with the same user name is kept as it is. Groups from the file are attached only to users with the Normal role.                                     |
| **Notes**             | A note for the same inventory and primary key is kept as it is.                                                                                            |

{% hint style="warning" %}
Importing does not overwrite existing groups, users, tags, policies or notes. If you need the values from the file, remove or rename the item on the target platform first.
{% endhint %}

### File format

An export file is a JSON document with exactly two keys: `export_type` (one of `dashboards`, `queries`, `workflows`, `profiles`, `policies`, `tags`, `groups`, `users`, `report_schedules`, `notes`) and `results` (a list of items). An import fails with `Invalid JSON content: must contain only 'export_type' and 'results'.` if the file has any other top-level key.

```json
{
  "export_type": "queries",
  "results": []
}
```

You can write a file yourself, for example to create dashboards in bulk. See the import section of the Chart and widget reference.

### Troubleshooting

| Symptom or error message                                                                  | Cause                                                                     | Fix                                                         |
| ----------------------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ----------------------------------------------------------- |
| `Invalid JSON: ...`                                                                       | The file is not valid JSON.                                               | Check that the file is complete and was not edited by hand. |
| `Invalid JSON content: must contain only 'export_type' and 'results'.`                    | The file has another top-level key.                                       | Export the items again and import the new file.             |
| `This file was exported by an older version. Export the tags again and import that file.` | A tags file from an old version uses a format that is no longer accepted. | Export the tags again from the source platform.             |
| Some items are missing after the import                                                   | They failed individually, or they already existed and were kept.          | Read the `Row N: ...` messages and the table above.         |
| **Include Asset IDs** is greyed out                                                       | **Enable Tag Export** is off.                                             | Select **Enable Tag Export** first.                         |

### What's next?

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Chart and widget reference</strong></td><td>Write a dashboard import file by hand.</td><td></td></tr><tr><td><strong>Backup, restore and migrate</strong></td><td>Move a whole platform to another server.</td><td></td></tr><tr><td><strong>Developer Resources</strong></td><td>Work with the OctoXLabs API and SDK.</td><td></td></tr></tbody></table>
