# Update config for a catalog

Launch stage: Public Preview

`PATCH /api/data-classification/v1/{name=catalogs/*/config}`

Update the Data Classification configuration for a catalog.
 - The config must already exist for the catalog.
 - Updates fields specified in the update_mask.  Use update_mask field to perform partial updates of the configuration.

API scopes: dataclassification

## Path parameters

- `name` (string, required, ID, Immutable)
  Resource name in the format: catalogs/{catalog_name}/config.

## Query parameters

- `update_mask` (string, required)
  Field mask specifying which fields to update.

## Request body

The configuration to apply to the catalog.
 The name field in catalog_config identifies which resource to update.
- `included_schemas` (object, optional)
  Schemas to include in the scan, each named relative to the parent catalog.
   If specified, only listed schemas will be scanned.
   Mutually exclusive with `excluded_schemas`: only one may be set per request. 
   If neither `included_schemas` nor `excluded_schemas` is set, all schemas are scanned.
  - `names` (array of string, required)
    Schema names, each relative to the parent catalog. Must not be empty.
- `excluded_schemas` (object, optional)
  Schemas to exclude from the scan, each named relative to the parent catalog. 
   If specified, all schemas except the specified ones will be scanned. 
   Mutually exclusive with `included_schemas`: only one may be set per request. 
   If neither `included_schemas` nor `excluded_schemas` is set, all schemas are scanned.
  - `names` (array of string, required)
    Schema names, each relative to the parent catalog. Must not be empty.
- `auto_tag_configs` (array of object, optional)
  List of auto-tagging configurations for this catalog.
   Empty list means no auto-tagging is enabled.
  - `classification_tag` (string, required)
    The Classification Tag. For built-in classes this is a system tag (e.g., "class.name",
     "class.location"); for custom classes it is a user-defined governance tag key.
  - `auto_tagging_mode` (string, required)
    Whether auto-tagging is enabled or disabled for this classification tag.
    Possible values:
    - `AUTO_TAGGING_DISABLED`
    - `AUTO_TAGGING_ENABLED`

## Returns

Returns the CatalogConfig object.

## Response

```json
{
  "name": "string",
  "included_schemas": {
    "names": [
      "string"
    ]
  },
  "excluded_schemas": {
    "names": [
      "string"
    ]
  },
  "auto_tag_configs": [
    {
      "classification_tag": "string",
      "auto_tagging_mode": "AUTO_TAGGING_DISABLED"
    }
  ]
}
```

