# Create config for a catalog

Launch stage: Public Preview

`POST /api/data-classification/v1/{parent=catalogs/*}/config`

Create Data Classification configuration for a catalog.

 Creates a new config resource, which enables Data Classification
 for the specified catalog. 
 - The config must not already exist for the catalog.

API scopes: dataclassification

## Path parameters

- `parent` (string, required)
  Parent resource in the format: catalogs/{catalog_name}

## Request body

The configuration to create.
- `name` (string, optional, ID, Immutable)
  Resource name in the format: catalogs/{catalog_name}/config.
- `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"
    }
  ]
}
```

