> ## Documentation Index
> Fetch the complete documentation index at: https://docs.e6data.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update a catalog

> Change a supported governance setting or update connection details for a Unity catalog.

`PUT /api/v1/catalogs/{name}`

Change a supported governance setting or update connection details for a Unity catalog.

## Access

[Request a workspace OAuth token](https://docs.e6data.com/api-reference/workspace-oauth-2-0/post-oauth2-token.md#request) for the workspace that owns the resource. If your workspace uses OAuth scopes for API access, request `query_engine.catalog:update`. If your admin confirms that workspace permissions are active for management API calls, omit the `scope` field for this call.

## Request

Path: name. This example changes the host of an existing Unity catalog. Use a host your workspace can reach. To change selected schemas, use the separate filters endpoint.

Content type: `application/json`.

```json theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "unity": {
    "host": "https://example-workspace.cloud.databricks.com"
  }
}
```

### Body fields

| Field | Type | Input | Details |
| - | - | - | - |
| `governanceType` | string | Optional | GovernanceType specifies the governance type for this catalog. Valid values: NONE (no governance), RANGER, OPA, UNITY, DATALAKE\_FORMATION. Allowed values: `NONE`, `RANGER`, `OPA`, `UNITY`, `DATALAKE_FORMATION`. |
| `unity` | object | Optional | Unity catalog update fields (UNITY catalogs only). |
| `unity.clientSecret` | string | Optional | Access token for authentication. |
| `unity.host` | string | Optional | Databricks workspace host URL. |

### Example request

Save the JSON request above as `request.json`.
Set `WORKSPACE_URL` to the same HTTPS workspace origin and `ACCESS_TOKEN` to the access token from that workspace. Replace example names and IDs with values from your workspace.

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
curl --proto '=https' --silent --show-error --fail-with-body \
  --request PUT \
  --header @- \
  --header 'Content-Type: application/json' \
  --data-binary @request.json \
  "$WORKSPACE_URL/api/v1/catalogs/analytics" <<< "Authorization: Bearer $ACCESS_TOKEN"
```

## Response

HTTP `200`. Content type: `application/json`.

Example response (selected fields and sample values):

```json theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "message": "<message from your workspace>",
  "name": "analytics"
}
```

The `message` field contains text from your workspace. The example uses a placeholder for that text.

The unity block applies to Unity catalogs. If you change governanceType, choose a provider supported by your workspace.

## Troubleshooting

For `401`, check the workspace URL and token expiry. For `403`, ask your admin to check the machine client’s access to this operation and resource. In a scope-based workspace, also check the scope on the token. [Troubleshoot the token or request](https://docs.e6data.com/api-reference/list-clusters-with-oauth.md#troubleshoot-a-request).

## Related guides

[Workspace management guide](https://docs.e6data.com/platform/automate/clusters-catalogs-schedules-policies.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.