# Update

Launch stage: Public Preview

`PATCH /api/data-classification/v1/{catalog_config.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

- `catalog_config` (object, optional)
  The configuration to apply to the catalog.
   The name field in catalog_config identifies which resource to update.
  - `name` (string, optional)
    Resource name in the format: catalogs/{catalog_name}/config.
  - `included_schemas` (object, required)
    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, optional)
      Schema names, each relative to the parent catalog. Must not be empty.
  - `excluded_schemas` (object, required)
    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, optional)
      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, optional)
      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, optional)
      Whether auto-tagging is enabled or disabled for this classification tag.
      Possible values: `AUTO_TAGGING_MODE_UNSPECIFIED`, `AUTO_TAGGING_DISABLED`, `AUTO_TAGGING_ENABLED`

## Query parameters

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

## 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": "string"
    }
  ]
}
```

