# Update the wiki for an entity

Launch stage: 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

## Path parameters

- `name` (string, required, ID, Immutable)
  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.

## Query parameters

- `update_mask` (string, required)
  Paths that may be updated: body, description, state.

## Request body

The wiki to update. Only fields named in update_mask are written.
- `body` (string, optional)
  The wiki content, in Markdown.
- `description` (string, optional)
  Short description of the wiki.
- `state` (string, optional)
  Lifecycle state of the wiki. Defaults to DRAFT when the wiki is created.
  Possible values:
  - `DRAFT`
  - `PUBLISHED`

## Returns

Returns the AssetPage object.

## Response

```json
{
  "name": "string",
  "body": "string",
  "description": "string",
  "state": "DRAFT",
  "create_time": "string",
  "update_time": "string"
}
```

