---
title: Unity Catalog wikis
description: Create, publish, and collaborate on Unity Catalog wikis, which document the meaning, intended use, and sources of a table.
canonical_url: https://docs.databricks.com/aws/en/uc-semantics/wikis
---

# Unity Catalog wikis

> [!NOTE]
> **Beta**
>
> This feature is in [Beta](https://docs.databricks.com/aws/en/release-notes/release-types.md). Account admins can manage access to this feature from the account console **Previews** page. See [ Manage account-level previews](https://docs.databricks.com/aws/en/admin/workspace-settings/manage-previews.md#account).

A *wiki* lets your team document a table's meaning, intended use, and sources, then collaborate on that information, directly in Catalog Explorer. Data owners and stewards draft and publish wikis to capture the business context that belongs with a table, such as definitions and known caveats. Anyone who can view the table's metadata can read a published wiki, comment on it, suggest edits, and react to it.

A wiki documents one table. A [Page](https://docs.databricks.com/aws/en/uc-semantics/pages.md) defines a business concept that can span many assets. Use a wiki for context about a specific table, and use a Page for a shared definition.

Wikis work alongside the table's existing comment. See [Wikis and table comments](https://docs.databricks.com/aws/en/uc-semantics/wikis.md#wikis-and-comments).

## <a id="wiki-contents" />What's in a wiki

A wiki contains the following fields:

| Field       | Description                                                                                                                                  |
| ----------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
| Description | A one-line summary of the table, shown at the top of the wiki.                                                                               |
| Page body   | Rich-text documentation that supports headings, links, images, and inline mentions of Unity Catalog securable objects and workspace objects. |
| Sources     | Links to the [Pages](https://docs.databricks.com/aws/en/uc-semantics/pages.md) or external sources that the wiki content is based on.        |

![A published wiki on the Overview tab of a table in Catalog Explorer, with a description, page body sections, and a Sources link](https://docs.databricks.com/aws/en/images/uc-semantics/wiki-overview.png)

## <a id="supported-securables" />Supported securables

You can create a wiki on the following Unity Catalog securable objects:

* [Managed tables](https://docs.databricks.com/aws/en/tables/managed.md)
* [External tables](https://docs.databricks.com/aws/en/tables/external.md)
* [Foreign tables](https://docs.databricks.com/aws/en/tables/foreign.md)
* [Streaming tables](https://docs.databricks.com/aws/en/ldp/concepts/streaming-tables.md)
* [Views](https://docs.databricks.com/aws/en/views/index.md)
* [Materialized views](https://docs.databricks.com/aws/en/ldp/concepts/materialized-views.md)
* [Metric views](https://docs.databricks.com/aws/en/uc-semantics/metric-views/index.md)

> [!NOTE]
>
> Wikis aren't available on securables shared through [OpenSharing](https://docs.databricks.com/aws/en/opensharing/index.md).

## <a id="permissions" />Permissions

A wiki isn't a securable object. It's metadata on its table, so your existing Unity Catalog privileges on the table determine what you can do with its wiki. For background on Unity Catalog privileges, see [Unity Catalog permissions model concepts](https://docs.databricks.com/aws/en/data-governance/unity-catalog/access-control/permissions-concepts.md).

The privileges table that follows uses *usage privileges on parent objects* to mean the [usage privileges](https://docs.databricks.com/aws/en/data-governance/unity-catalog/access-control/permissions-concepts.md#usage-privileges) that `READ_METADATA`, `MANAGE`, or ownership require to take effect. They depend on the object:

* **Table**: `USE SCHEMA` on the parent schema and `USE CATALOG` on the parent catalog.
* **Schema**: `USE CATALOG` on the parent catalog.
* **Catalog**: None.

| Action                                                                                                                                  | Required privileges                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| --------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| View and collaborate on published wikis: view published wikis, add, edit, or delete your own comments, suggest edits, and add reactions | One of the following:<br /><ul><li>`SELECT` on the table, `USE SCHEMA` on the schema, and `USE CATALOG` on the catalog</li><li>`BROWSE` on the parent catalog</li><li>`READ_METADATA` on the table, schema, catalog, or metastore, with usage privileges on parent objects</li><li>`MANAGE` on the table, schema, or catalog, with usage privileges on parent objects</li><li>Owner of the table, parent schema, or parent catalog, with usage privileges on parent objects</li><li>Metastore admin</li></ul> |
| View draft wikis                                                                                                                        | One of the following:<br /><ul><li>`READ_METADATA` on the table, schema, catalog, or metastore, with usage privileges on parent objects</li><li>`MANAGE` on the table, schema, or catalog, with usage privileges on parent objects</li><li>Owner of the table, parent schema, or parent catalog, with usage privileges on parent objects</li><li>Metastore admin</li></ul>                                                                                                                                    |
| Manage wikis and comments: create, edit, publish, or unpublish wikis, accept or reject suggested edits, and delete any comment          | One of the following:<br /><ul><li>`MANAGE` on the table, schema, or catalog, with usage privileges on parent objects</li><li>Owner of the table, parent schema, or parent catalog, with usage privileges on parent objects</li><li>Metastore admin</li></ul>                                                                                                                                                                                                                                                 |

## <a id="create-wiki" />Create a wiki

To create a wiki, you need the privileges to manage wikis on the table. See [Permissions](https://docs.databricks.com/aws/en/uc-semantics/wikis.md#permissions).

You can author a wiki manually or draft one with Genie Code.

> [!WARNING]
>
> Wiki data is encrypted at rest with Databricks-managed keys. Wikis don't support customer-managed key (CMK) encryption. Do not include PII, regulated data, or other sensitive information in wiki descriptions or page bodies.

1. In Catalog Explorer, open the table.

2. On the **Overview** tab, click **Create wiki**. If you dismissed the **Create wiki** banner, click the ![Kebab menu icon.](https://docs.databricks.com/aws/en/images/product-icons/OverflowIcon.svg) kebab menu in the upper-right corner of the page and select **Create wiki** instead. If the table has an existing comment, it seeds the wiki's page body.

   ![The Create wiki banner above a table's description on the Overview tab](https://docs.databricks.com/aws/en/images/uc-semantics/wiki-create-banner.png)

3. Add the wiki content:
   * To author manually, fill in the **Description** and **Page body**, and add any **Sources**.
   * To draft with Genie Code, use the Genie Code pane in the wiki editor. Attach files or other context for Genie Code to work from. See [Genie Code](https://docs.databricks.com/aws/en/genie-code/index.md).

4. Click **Save as draft** to keep working on the wiki, or click **Publish** to make it visible to everyone who can view the table's metadata.

After you publish a wiki, it appears at the top of the table's **Overview** tab, and the table's **Description** moves to the **Details** tab.

## <a id="edit-publish" />Edit and publish wikis

To edit, publish, or unpublish a wiki, you need the privileges to manage wikis on the table. See [Permissions](https://docs.databricks.com/aws/en/uc-semantics/wikis.md#permissions).

1. In Catalog Explorer, open the table.
2. On the wiki, click **Edit**.
3. Make your changes, then click **Save** to save them, or click **Publish** to make a draft wiki visible.

   ![A draft wiki in edit mode, with Cancel, Save, and Publish buttons](https://docs.databricks.com/aws/en/images/uc-semantics/wiki-edit-draft.png)

To hide a published wiki without losing its content, click **Edit**, click the kebab menu, and then click **Unpublish**. The wiki reverts to a draft that only users who can view drafts can see. Until you publish the wiki again, the table's **Description** appears at the top of the **Overview** tab.

![The Unpublish option in the kebab menu of a published wiki in edit mode](https://docs.databricks.com/aws/en/images/uc-semantics/wiki-unpublish.png)

## <a id="collaborate" />Collaborate on a wiki

Anyone who can view a published wiki can collaborate on it. See [Permissions](https://docs.databricks.com/aws/en/uc-semantics/wikis.md#permissions).

* **Comment**: Ask questions or add context. You can edit or delete your own comments.
* **Suggest edits**: Suggest changes to the wiki's page body. Click **Suggest**, edit the page body, and click **Save**. A user with the privileges to manage the wiki accepts or rejects the suggestion.
* **React**: Upvote or downvote the wiki to signal whether it was helpful.

## <a id="wikis-and-comments" />Wikis and table comments

A wiki doesn't replace the table's comment, so existing pipelines that read or write comments keep working:

* You can still set the comment with `COMMENT ON TABLE` or `ALTER TABLE`. The comment still appears in `information_schema` and in the **Description** field in Catalog Explorer.
* When you create a wiki, the table's existing comment seeds the wiki's page body. After that, the wiki and the comment are independent. Changes to one don't update the other.

For more about table comments, see [Add comments to data and AI assets](https://docs.databricks.com/aws/en/comments/index.md).

## <a id="wikis-api" />Manage wikis with the REST API

Read and update a table's wiki programmatically with the wikis REST API. The API supports the following operations:

* **Get a wiki**: Retrieve the wiki for a table.
* **Update a wiki**: Update the wiki for a table, or create it if the table doesn't have one. Setting the wiki's state to published publishes it.

The API requires the same privileges as the UI. See [Permissions](https://docs.databricks.com/aws/en/uc-semantics/wikis.md#permissions). Authenticate your requests with a Databricks personal access token for your workspace user or OAuth.

For request and response details, see the [Wikis REST API reference](https://docs.databricks.com/api/uc-wikis/v1/asset-page).

## Limitations

* Wikis are available only on the securable objects listed in [Supported securables](https://docs.databricks.com/aws/en/uc-semantics/wikis.md#supported-securables). Wikis on columns, schemas, catalogs, and other securable objects aren't supported.
* Each table can have one wiki.

- Wikis aren't available in GovCloud regions.
