> ## Documentation Index
> Fetch the complete documentation index at: https://openmetadata-add-ontology-explorer-docs.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Bulk Import Data Assets via CSV in OpenMetadata

> Learn to bulk import databases, schemas, and tables in OpenMetadata using CSV files. Edit inline, validate changes, and import via UI or API.

# Import Data Asset

Importing a Data Asset is simple. Below are the steps to bulk import various data assets, such as Databases, Schemas, and Tables.

## How to Bulk Import a Database Service

To import a Database Service:

1. Navigate to the Database Service you want to import by going to **Settings > Services > Database**.
2. For this example, we are importing in the `Snowflake` service.
3. Click on the **⋮** icon and select **Import** to download the Database Service file.

<img src="https://mintcdn.com/openmetadata-add-ontology-explorer-docs/rbYRgsHZlPshtfTc/public/images/how-to-guides/discovery/import1.png?fit=max&auto=format&n=rbYRgsHZlPshtfTc&q=85&s=5c7324391bd0a07d70ff99eaf6f09a04" alt="Import a Database Service" width="2444" height="1384" data-path="public/images/how-to-guides/discovery/import1.png" />

4. Upload/Drop the Database Service CSV file that you want to import. Alternatively, you can `export` an existing Database Service CSV as a template, make the necessary edits, and then upload the updated file.

Once you have the template, you can fill in the following details:

* **name** (required): This field contains the name of the database.

* **fullyQualifiedName** (required): This field contains the fully qualified name of the database service.

* **displayName**: This field holds the display name of the database.

* **description**: This field contains a detailed description or information about the database.

* **owner**: This field specifies the owner of the database.

* **tags**: This field contains the tags associated with the database.

* **glossaryTerms**: This field holds the glossary terms linked to the database.

* **tiers**: This field defines the tiers associated with the database service.

* **domain**: This field contains the domain assigned to the data asset.

<img src="https://mintcdn.com/openmetadata-add-ontology-explorer-docs/rbYRgsHZlPshtfTc/public/images/how-to-guides/discovery/import2.png?fit=max&auto=format&n=rbYRgsHZlPshtfTc&q=85&s=379f5cb25893e35546cd10cfd208fd12" alt="Upload the Database Service CSV file" width="2444" height="1384" data-path="public/images/how-to-guides/discovery/import2.png" />

5. You can now preview the uploaded Database Service CSV file and add or modify data using the inline editor.

<img src="https://mintcdn.com/openmetadata-add-ontology-explorer-docs/rbYRgsHZlPshtfTc/public/images/how-to-guides/discovery/import3.png?fit=max&auto=format&n=rbYRgsHZlPshtfTc&q=85&s=2e730c52582f0b2ffff8ede939bb2494" alt="Preview of the Database Service" width="2444" height="1384" data-path="public/images/how-to-guides/discovery/import3.png" />

6. Validate the updated Data Assets and confirm the changes. A success or failure message will then be displayed based on the outcome.

<img src="https://mintcdn.com/openmetadata-add-ontology-explorer-docs/rbYRgsHZlPshtfTc/public/images/how-to-guides/discovery/import4.png?fit=max&auto=format&n=rbYRgsHZlPshtfTc&q=85&s=3928fd03692b430216c1f935dcbaa0c2" alt="Validate the updated Data Assets" width="2444" height="1384" data-path="public/images/how-to-guides/discovery/import4.png" />

7. The Database Service has been updated successfully, and you can now view the changes in the Database Service.

<img src="https://mintcdn.com/openmetadata-add-ontology-explorer-docs/rbYRgsHZlPshtfTc/public/images/how-to-guides/discovery/import5.png?fit=max&auto=format&n=rbYRgsHZlPshtfTc&q=85&s=37af08e8fb759d1a0d77c399a7ece90c" alt="Database Service Import successful" width="2444" height="1384" data-path="public/images/how-to-guides/discovery/import5.png" />

<Tip>
  You can also import the Database Service using the API with the following endpoint:

  `/api/v1/services/databaseServices/name/{name}/import`
  Make sure to replace `{name}` with the Fully Qualified Name (FQN) of the Database Service.
</Tip>

## How to Bulk Import a Database

To import a Database:

1. In this example, we are Importing the `DEMO` database under **Snowflake**.
2. Click on the **⋮** icon and select **Import** to upload the Database CSV file.

<img src="https://mintcdn.com/openmetadata-add-ontology-explorer-docs/rbYRgsHZlPshtfTc/public/images/how-to-guides/discovery/import6.png?fit=max&auto=format&n=rbYRgsHZlPshtfTc&q=85&s=3e231d2df695830111ef5f30bf6a9e90" alt="Import a Database" width="2444" height="1384" data-path="public/images/how-to-guides/discovery/import6.png" />

3. Upload/Drop the Database CSV file that you want to import. Alternatively, you can `export` an existing Database CSV as a template, make the necessary edits, and then upload the updated file.

Once you have the template, you can fill in the following details:

* **name** (required): This field contains the name of the database.

* **fullyQualifiedName** (required): This field contains the fully qualified name of the database.

* **displayName**: This field holds the display name of the database.

* **description**: This field contains a detailed description or information about the database.

* **owner**: This field specifies the owner of the database.

* **tags**: This field contains the tags associated with the database.

* **glossaryTerms**: This field holds the glossary terms linked to the database.

* **tiers**: This field defines the tiers associated with the database.

* **sourceUrl**: This field contains the Source URL of the data asset. Example for the Snowflake database: `https://app.snowflake.com/<account>/#/data/databases/DEMO/`

* **retentionPeriod**: This field contains the retention period of the data asset. Period is expressed as a duration in ISO 8601 format in UTC. Example - `P23DT23H`.

* **domain**: This field contains the domain assigned to the data asset.

<img src="https://mintcdn.com/openmetadata-add-ontology-explorer-docs/rbYRgsHZlPshtfTc/public/images/how-to-guides/discovery/import7.png?fit=max&auto=format&n=rbYRgsHZlPshtfTc&q=85&s=fc373450bb870c28ea5f1f4e3d4bd3b2" alt="Upload the Database CSV file" width="2444" height="1384" data-path="public/images/how-to-guides/discovery/import7.png" />

4. You can now preview the uploaded Database CSV file and add or modify data using the inline editor.

<img src="https://mintcdn.com/openmetadata-add-ontology-explorer-docs/rbYRgsHZlPshtfTc/public/images/how-to-guides/discovery/import8.png?fit=max&auto=format&n=rbYRgsHZlPshtfTc&q=85&s=7e0322bfb9e4587c67618c6dfe36a2b0" alt="Preview of the Database" width="2444" height="1384" data-path="public/images/how-to-guides/discovery/import8.png" />

5. Validate the updated Data Assets and confirm the changes. A success or failure message will then be displayed based on the outcome.

<img src="https://mintcdn.com/openmetadata-add-ontology-explorer-docs/rbYRgsHZlPshtfTc/public/images/how-to-guides/discovery/import9.png?fit=max&auto=format&n=rbYRgsHZlPshtfTc&q=85&s=6bd1d75b5169c89b3635205e11eeeba5" alt="Validate the updated Data Assets" width="2444" height="1384" data-path="public/images/how-to-guides/discovery/import9.png" />

6. The Database has been updated successfully, and you can now view the changes in the Database.

<img src="https://mintcdn.com/openmetadata-add-ontology-explorer-docs/rbYRgsHZlPshtfTc/public/images/how-to-guides/discovery/import10.png?fit=max&auto=format&n=rbYRgsHZlPshtfTc&q=85&s=eb472d19521d0ec1e208a4a80be6189e" alt="Database Import successful" width="2444" height="1384" data-path="public/images/how-to-guides/discovery/import10.png" />

<Tip>
  You can also import the Database using the API with the following endpoint:

  `/api/v1/databases/name/{name}/import`
  Make sure to replace `{name}` with the Fully Qualified Name (FQN) of the Database.
</Tip>

## How to Bulk Import a Database Schema

To import a Database Schema:

1. In this example, we are importing the `JAFFLE_SHOP` schema under **Snowflake > DEMO**.
2. Click on the **⋮** icon and select **Import** to upload the Database Schema CSV file.

<img src="https://mintcdn.com/openmetadata-add-ontology-explorer-docs/rbYRgsHZlPshtfTc/public/images/how-to-guides/discovery/import11.png?fit=max&auto=format&n=rbYRgsHZlPshtfTc&q=85&s=0257839381207d66a27ddc3cbb1eb6e6" alt="Import a Database Schema" width="2444" height="1384" data-path="public/images/how-to-guides/discovery/import11.png" />

3. Upload/Drop the Database Schema CSV file that you want to import. Alternatively, you can `export` an existing Database Schema CSV as a template, make the necessary edits, and then upload the updated file.

Once you have the template, you can fill in the following details:

* **name** (required): This field contains the name of the database schema.

* **fullyQualifiedName** (required): This field contains the fully qualified name of the database schema.

* **displayName**: This field holds the display name of the database schema.

* **description**: This field contains a detailed description or information about the database schema.

* **owner**: This field specifies the owner of the database schema.

* **tags**: This field contains the tags associated with the database schema.

* **glossaryTerms**: This field holds the glossary terms linked to the database schema.

* **tiers**: This field defines the tiers associated with the database schema.

* **sourceUrl**: This field contains the Source URL of the data asset. Example for the Snowflake database schema: `https://app.snowflake.com/<account>/#/data/databases/DEMO/schemas/JAFFLE_SHOP`

* **retentionPeriod**: This field contains the retention period of the data asset. Period is expressed as a duration in ISO 8601 format in UTC. Example - `P23DT23H`.

<img src="https://mintcdn.com/openmetadata-add-ontology-explorer-docs/rbYRgsHZlPshtfTc/public/images/how-to-guides/discovery/import12.png?fit=max&auto=format&n=rbYRgsHZlPshtfTc&q=85&s=76b9664c7bd3912d4d4822fef8773c06" alt="Upload the Database Schema CSV file" width="2444" height="1384" data-path="public/images/how-to-guides/discovery/import12.png" />

4. You can now preview the uploaded Database Schema CSV file and add or modify data using the inline editor.

<img src="https://mintcdn.com/openmetadata-add-ontology-explorer-docs/rbYRgsHZlPshtfTc/public/images/how-to-guides/discovery/import13.png?fit=max&auto=format&n=rbYRgsHZlPshtfTc&q=85&s=578d81d64f99a30c333d936da593de57" alt="Preview of the Database Schema" width="2444" height="1384" data-path="public/images/how-to-guides/discovery/import13.png" />

5. Validate the updated Data Assets and confirm the changes. A success or failure message will then be displayed based on the outcome.

<img src="https://mintcdn.com/openmetadata-add-ontology-explorer-docs/rbYRgsHZlPshtfTc/public/images/how-to-guides/discovery/import14.png?fit=max&auto=format&n=rbYRgsHZlPshtfTc&q=85&s=626de0007b205cc2b2e6a098132ebce2" alt="Validate the updated Data Assets" width="2444" height="1384" data-path="public/images/how-to-guides/discovery/import14.png" />

6. The Database Schema has been updated successfully, and you can now view the changes in the Database Schema.

<img src="https://mintcdn.com/openmetadata-add-ontology-explorer-docs/rbYRgsHZlPshtfTc/public/images/how-to-guides/discovery/import15.png?fit=max&auto=format&n=rbYRgsHZlPshtfTc&q=85&s=818c33bf7d37492c5de4dee52303c237" alt="Database Schema Import successful" width="2444" height="1384" data-path="public/images/how-to-guides/discovery/import15.png" />

<Tip>
  You can also import the Database Schema using the API with the following endpoint:

  `/api/v1/databaseSchemas/name/{name}/import`
  Make sure to replace `{name}` with the Fully Qualified Name (FQN) of the Database Schema.
</Tip>

## How to Bulk Import a Table

To import a Table:

1. In this example, we are importing the `CUSTOMERS` table under **Snowflake > DEMO > JAFFLE\_SHOP**.
2. Click on the **⋮** icon and select **Import** to download the Table CSV file.

<img src="https://mintcdn.com/openmetadata-add-ontology-explorer-docs/rbYRgsHZlPshtfTc/public/images/how-to-guides/discovery/import16.png?fit=max&auto=format&n=rbYRgsHZlPshtfTc&q=85&s=8530fd0e11ab0dc8dd48b2ec836c2347" alt="Import a Table" width="2444" height="1384" data-path="public/images/how-to-guides/discovery/import16.png" />

3. Upload/Drop the Table CSV file that you want to import. Alternatively, you can `export` an existing table CSV as a template, make the necessary edits, and then upload the updated file.

Once you have the template, you can fill in the following details:

* **name**: This field contains the name of the table.

* **fullyQualifiedName** (required): This field contains the fully qualified name of the table.

* **displayName**: This field holds the display name of the table.

* **description**: This field contains a detailed description or information about the table.

* **owner**: This field specifies the owner of the table.

* **tags**: This field contains the tags associated with the table.

* **glossaryTerms**: This field holds the glossary terms linked to the table.

* **tiers**: This field defines the tiers associated with the table.

* **sourceUrl**: This field contains the Source URL of the data asset. Example for the Snowflake table: `https://app.snowflake.com/<account>/#/data/databases/DEMO/schemas/JAFFLE_SHOP/table/CUSTOMERS`

* **retentionPeriod**: This field contains the retention period of the data asset. Period is expressed as a duration in ISO 8601 format in UTC. Example - `P23DT23H`.

* **column.fullyQualifiedName** (required): This field holds the fully qualified name of the column.

* **column.displayName**: This field holds the display name of the column, if different from the technical name.

* **column.description**: This field holds a detailed description or information about the column's purpose or content.

* **column.dataTypeDisplay**: This field holds the data type for display purposes.

* **column.dataType**: This field holds the data type of the column (e.g., `VARCHAR`, `INT`, `BOOLEAN`).

* **column.arrayDataType**: If the column is an array, this field will specify the data type of the array elements.

* **column.dataLength**:  This field holds the length or size of the data.

* **column.tags**:  This field holds the Tags associated with the column, which help categorize.

* **column.glossaryTerms**:  This field holds the Glossary terms linked to the column to provide standardized definitions.

<img src="https://mintcdn.com/openmetadata-add-ontology-explorer-docs/rbYRgsHZlPshtfTc/public/images/how-to-guides/discovery/import17.png?fit=max&auto=format&n=rbYRgsHZlPshtfTc&q=85&s=93c698f1f59478c24d115742ec0882df" alt="Upload the Table CSV file" width="2444" height="1384" data-path="public/images/how-to-guides/discovery/import17.png" />

4. You can now preview the uploaded Table CSV file and add or modify data using the inline editor.

<img src="https://mintcdn.com/openmetadata-add-ontology-explorer-docs/rbYRgsHZlPshtfTc/public/images/how-to-guides/discovery/import18.png?fit=max&auto=format&n=rbYRgsHZlPshtfTc&q=85&s=23928b8166fb84ff64489d168f48223c" alt="Preview of the Table" width="2444" height="1384" data-path="public/images/how-to-guides/discovery/import18.png" />

5. Validate the updated Data Assets and confirm the changes. A success or failure message will then be displayed based on the outcome.

<img src="https://mintcdn.com/openmetadata-add-ontology-explorer-docs/rbYRgsHZlPshtfTc/public/images/how-to-guides/discovery/import19.png?fit=max&auto=format&n=rbYRgsHZlPshtfTc&q=85&s=161f5ce75e3e229ef05cf6f0a42e20b8" alt="Validate the updated Data Assets" width="2444" height="1384" data-path="public/images/how-to-guides/discovery/import19.png" />

6. The Table has been updated successfully, and you can now view the changes in the Table.

<img src="https://mintcdn.com/openmetadata-add-ontology-explorer-docs/rbYRgsHZlPshtfTc/public/images/how-to-guides/discovery/import20.png?fit=max&auto=format&n=rbYRgsHZlPshtfTc&q=85&s=e431fa47f77ff085b120dd2fc698843a" alt="Table Import successful" width="2444" height="1384" data-path="public/images/how-to-guides/discovery/import20.png" />

<Tip>
  You can also import the Tables using the API with the following endpoint:

  `/api/v1/tables/name/{name}/import`
  Make sure to replace `{name}` with the Fully Qualified Name (FQN) of the Table.
</Tip>

<Card title="Data Asset Export" href="/v2.0.x-SNAPSHOT/how-to-guides/data-discovery/export">
  Quickly export data assets as a CSV file.
</Card>
