Skip to main content

Asset Page

View as Markdown

AssetPage object​

A wiki attached to a single Unity Catalog entity. Each entity has at most one wiki.

namestringBetaIDImmutable

Resource name of the wiki, of the form tables/{full_name}/page, where full_name is the table's three-level name (catalog.schema.table). Tables are the only entity type that supports wikis.

Example: tables/main.sales.orders/page

bodystringBeta

The wiki content, in Markdown.

descriptionstringBeta

Short description of the wiki.

statestringBeta

Lifecycle state of the wiki. Defaults to DRAFT when the wiki is created.

Values:

  • DRAFT
  • PUBLISHED
create_timestringBetaOutput only

Time at which this wiki was created.

update_timestringBetaOutput only

Time at which this wiki was last updated.

Get the wiki for an entity Beta​

GET /api/2.0/knowledge/{name=*/*/page}

Fetches the wiki for an entity. Returns NOT_FOUND when the entity has no wiki or the caller is not allowed to read it.

API scopes: unity-catalog

Parameters​

namestringRequiredpath

Resource name of the wiki, of the form tables/{full_name}/page, where full_name is the table's three-level name (catalog.schema.table).

Example: tables/main.sales.orders/page

Response​

Returns the AssetPage object.

Update the wiki for an entity Beta​

PATCH /api/2.0/knowledge/{name=*/*/page}

Updates the wiki, creating it if it does not exist yet. Setting state to PUBLISHED publishes a new version, as does changing the body of a wiki that stays published. Only update_mask paths are written.

API scopes: unity-catalog

Parameters​

namestringRequiredIDImmutablepath

Resource name of the wiki, of the form tables/{full_name}/page, where full_name is the table's three-level name (catalog.schema.table). Tables are the only entity type that supports wikis.

Example: tables/main.sales.orders/page

update_maskstringRequiredquery

Comma-separated list of the fields to update. The supported fields are body, description and state. When the mask includes state, the request must set it to DRAFT or PUBLISHED; leave state out of the mask to keep the wiki's current state.

Request body​

The wiki to update. Only fields named in update_mask are written.

bodystring

The wiki content, in Markdown.

descriptionstring

Short description of the wiki.

statestring

Lifecycle state of the wiki. Defaults to DRAFT when the wiki is created.

Values:

  • DRAFT
  • PUBLISHED

Response​

Returns the AssetPage object.